예제 #1
0
 def test_onlyfirst_list(self):
     self.assertEqual(Usage.sum([a, b, b]), Usage(first=131, second=294))
예제 #2
0
 def test_firstlist_1second(self):
     self.assertEqual(Usage.sum([a, b], b), Usage(first=131, second=294))
예제 #3
0
 def test_params_with_tuple(self):
     self.assertEqual(Usage.sum((12, 23), [a, b], (12, 3), [a, b]),
                      Usage(first=244, second=410))
예제 #4
0
 def test_everything_param(self):
     self.assertEqual(Usage.sum(a, b, b), Usage(first=131, second=294))