예제 #1
0
 def testAddedFunctionWithVarargs(self):
     '''Calls function that receives varargs added to module from type system description.'''
     self.assertEqual(sample.countVarargs(1), 0)
     self.assertEqual(sample.countVarargs(1, 2), 1)
     self.assertEqual(sample.countVarargs(1, 2, 3, 'a', 'b', 4, (5, 6)), 6)
예제 #2
0
 def testAddedFunctionWithVarargs(self):
     '''Calls function that receives varargs added to module from type system description.'''
     self.assertEqual(sample.countVarargs(1), 0)
     self.assertEqual(sample.countVarargs(1, 2), 1)
     self.assertEqual(sample.countVarargs(1, 2, 3, 'a', 'b', 4, (5, 6)), 6)