class EmployeeTests(unittest.TestCase): def setUp(self): self.e = Employee("Abraham", 50) def test_get_name(self): self.assertEqual("Abraham", self.e.get_name()) def test_get_salary(self): self.assertEqual(50, self.e.get_salary()) def test_obj_repr(self): print(self.e)
def setUp(self): self.e = Employee("Abraham", 50)