예제 #1
0
 def test_is_perfect_negativeNum(self):
     expected_value = False
     value = is_perfect(-1)
     self.assertEqual(expected_value, value)
예제 #2
0
 def test_is_perfect_num2(self):
     expected_value = True
     value = is_perfect(28)
     self.assertEqual(expected_value, value)
예제 #3
0
 def test_is_perfect_num3(self):
     expected_value = False
     value = is_perfect(129)
     self.assertEqual(expected_value, value)
예제 #4
0
 def test_is_perfect_zero(self):
     expected_value = False
     value = is_perfect(0)
     self.assertEqual(expected_value, value)