def test_imperfect_numbers(self): for imperfect_number in IMPERFECT_NUMBERS: self.assertFalse( solution.is_perfect(imperfect_number), "{} is expected to be an imperfect number".format(imperfect_number), )
def test_imperfect_numbers(self): for imperfect_number in IMPERFECT_NUMBERS: self.assertFalse( solution.is_perfect(imperfect_number), '{} is expected to be an imperfect number'.format( imperfect_number))
def test_perfect_numbers(self): for perfect_number in PERFECT_NUMBERS: self.assertTrue( solution.is_perfect(perfect_number), "{} is expected to be a perfect number".format(perfect_number) )
def test_perfect_numbers(self): for perfect_number in PERFECT_NUMBERS: self.assertTrue( solution.is_perfect(perfect_number), '{} is expected to be a perfect number'.format(perfect_number))