Exemplo n.º 1
0
 def __test_ref_fine( self, inst, val ):
     self.assertEqual( custom_sptr.ref_get_value( inst ), val )
Exemplo n.º 2
0
 def __test_ref_fine(self, inst, val):
     self.assertEqual(custom_sptr.ref_get_value(inst), val)
Exemplo n.º 3
0
 def __test_ref( self, inst ):
     try:
         custom_sptr.ref_get_value( inst )
         self.fail( 'ArgumentError was not raised.' )
     except Exception, error:
         self.failUnless( error.__class__.__name__ == 'ArgumentError' )
Exemplo n.º 4
0
 def __test_ref(self, inst):
     try:
         custom_sptr.ref_get_value(inst)
         self.fail('ArgumentError was not raised.')
     except Exception, error:
         self.failUnless(error.__class__.__name__ == 'ArgumentError')