Example #1
0
    def getSummary(self):
        summary = "Name: {}\n".format(Employee.getName(self))
        summary += "Age: {} years old\n".format(Employee.getAge(self))

        summary += "Monthly Salary: $ {}\n".format(self.getFormattedSalary())

        return summary
Example #2
0
 def name(self):
     e = Employee('Vikky', 23)
     self.assertEqual(e.getName('Vikky'), 'Vikky')