Update of /cvsroot/pygccxml/source/pyplusplus/examples/custom_code_creator/unittests
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28954/pyplusplus/examples/custom_code_creator/unittests
Modified Files:
test_all.py
Log Message:
There are a lot of changes, sorry CVS did not worked for week or something like this
Changes
1. Lots of code clean up
2. Adding and updating documentation
3. Adding new method on decl_wrapper - readme. This method will return list of msgs to the developer.
For example if function takes by reference fundamental type it will say that this function could not be called from Python
4. Logging functionlity has been added to file writers too
5. Few bug fixes
6. For operator [] call policies is always set.
Index: test_all.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/custom_code_creator/unittests/test_all.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_all.py 13 Nov 2005 08:35:44 -0000 1.1
--- test_all.py 6 Apr 2006 06:16:05 -0000 1.2
***************
*** 1,4 ****
import unittest
! import pysources
class tester_t( unittest.TestCase ):
--- 1,4 ----
import unittest
! import properties
class tester_t( unittest.TestCase ):
***************
*** 7,17 ****
def test(self):
! point = pysources.point_t()
self.failUnless( point.x == 0 )
self.failUnless( point.y == 0 )
point.x = 24
point.y = 18
! self.failUnless( pysources.get_x( point ) == 24 )
! self.failUnless( pysources.get_y( point ) == 18 )
def create_suite():
--- 7,17 ----
def test(self):
! point = properties.point_t()
self.failUnless( point.x == 0 )
self.failUnless( point.y == 0 )
point.x = 24
point.y = 18
! self.failUnless( properties.extract_x( point ) == 24 )
! self.failUnless( properties.extract_y( point ) == 18 )
def create_suite():
|