Question: you will be writing your own test cases from scratch. You must implement *at least* 2 more test cases to test your code. These

you will be writing your own test cases from scratch. You must 

implement *at least* 2 more test cases to test your code. These 

you will be writing your own test cases from scratch. You must implement *at least* 2 more test cases to test your code. These test cases must be in their own functions, their names must start with "test_", and the test names must be unique. These test cases must pass on a working version of the prep3 code (i.e. a working version of Salaried Employee, Hourly Employee, Company) and must create at least one Salaried Employee or Hourly Employee. You must NOT access any private variables. There are no other requirements for the test cases. You can verify whether your test cases are acceptable by running the automated tests on Markus. TODO: Implement *at least* 2 more test cases to test your code. Sample test cases below == === Use the below test cases as an example for writing your own test cases, and as a start to testing your prep3.py code. WARNING: THIS IS CURRENTLY AN EXTREMELY INCOMPLETE SET OF TESTS! We will test your code on a much more thorough set of tests! WITYMA def test_total_pay_basic() -> None: e = Salaried Employee (14, 'Gilbert the cat', 1200.0) e.pay (date (2018, 6, 28)) e.pay (date (2018, 7, 28)) e.pay (date (2018, 8, 28)) assert e.total_pay() def test_total_payroll_mixed () -> None: my_corp = Company ( [Salaried Employee (24, 'Gilbert the cat', 1200.0), HourlyEmployee (25, 'Chairman Meow', 500.25, 1.0)]) my_corp.pay_all(date (2018, 6, 28)) assert my_corp.total_payroll() if name import pytest == 300.0 _main__' == 600.25 pytest.main(['prep3_starter_tests.py'])

Step by Step Solution

3.54 Rating (164 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution Here are two more test cases that you can use Python def testemployeepayroll Test the payroll calculation for a salaried employee employee Sa... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!