예제 #1
0
 def test_sum_of_squares(self):
     from examples.sum_of_squares import test_calling_fn
     for i in range(5):
         self.assertEqual(test_calling_fn(i),
                          sum([j * j for j in range(i)]))
예제 #2
0
 def test_sum_of_squares(self):
     from examples.sum_of_squares import test_calling_fn
     for i in range(5):
         self.assertEqual(test_calling_fn(i),
                          sum([j * j for j in range(i)]))
예제 #3
0
 def test_square(self):
     from examples.square import test_calling_fn
     for i in range(5):
         self.assertEqual(test_calling_fn(i), i * i)
예제 #4
0
 def test_square(self):
     from examples.square import test_calling_fn
     for i in range(5):
         self.assertEqual(test_calling_fn(i), i * i)