Exemplo n.º 1
0
    def test_create_and_add_new_employee(self):
        # TODO write this test and then remove the self.fail() statement

        testEmployee1 = Phone(1, 'John', 'Mary')
        testEmployee2 = Phone(2, 'Robert', 'Stedfeld')

        Employee = [testEmployee1, testEmployee2]

        testAssignmentMgr = Employee()
        testAssignmentMgr.add_Employee(testEmployee1)
        testAssignmentMgr.add_Employee(testEmployee2)
Exemplo n.º 2
0
    def test_create_and_add_employee_with_duplicate_id(self):
        # TODO write this test and then remove the self.fail() statement

        testEmployee1 = Phone(1, 'John', 'Mary')
        testEmployee2 = Phone(1, 'Robert', 'Stedfeld')

        Employee = [testEmployee1, testEmployee2]

        testAssignmentMgr = Employee()
        testAssignmentMgr.add_Employee(testEmployee1)
        testAssignmentMgr.add_Employee(testEmployee2)

        # TODO you'll need to fix the add_employee method in PhoneAssignments to make this test PhoneAssignments

        testEmployee1 = Phone(1, 'John', 'Mary')
        testEmployee2 = Phone(2, 'Robert', 'Stedfeld')

        Employee = [testEmployee1, testEmployee2]

        testAssignmentMgr = Employee()
        testAssignmentMgr.add_Employee(testEmployee1)
        testAssignmentMgr.add_Employee(testEmployee2)