Exemplo n.º 1
0
    def test_inherited_methods(self):
        manager = Manager(123, 123 , 123)
        manager.calc_bonus()
        manager.get_hours()
        manager.get_department()
        manager.set_department(None)

        seller = Seller(123, 123 , 123)
        seller.calc_bonus()
        seller.get_hours()
        seller.get_department()
        seller.set_department(None)
Exemplo n.º 2
0
 def test_workload_hours(self):
     manager = Manager(123, 123 , 123)
     assert manager.get_hours() == 8
     seller = Seller(123, 123 , 123)
     assert seller.get_hours() == 8