def negative_test(): assert factorial(-3) == ""
def test_factorial(self): self.assertEqual(application.factorial(5), 120) self.assertEqual(application.factorial(2), 2) self.assertEqual(application.factorial(7), 5040)
def correct_test(): assert factorial(5) == "12"
def zero_test(): assert factorial(0) == ""
def test_factorial(self): self.assertNotAlmostEqual(application.factorial(5),0)
def test_factorial(self): self.assertEqual(application.factorial(5), 120) self.assertEqual(application.factorial(1), 1)