#!/usr/bin/env python

import os
import sys
import unittest
from testcontext import Fellow, Person, Staff


class TestPersonClass(unittest.TestCase):
    """The test for the Person Model, its attributes
    and mehods."""

    def test_created_person_successfully(self):
        new_person = Person(fname='Ladi', lname='Adeniran',
                            role='software developer')
        self.assertTrue(new_person)
        self.assertIsInstance(new_person, Person)
        self.assertEqual(new_person.fname, 'Ladi')
        self.assertEqual(new_person.lname, 'Adeniran')
        self.assertEqual(new_person.role, 'software developer')

    def test_person_repr_method(self):
        new_person = Person(fname='James', lname='Blunt', role='Singer')
        self.assertEqual(str(new_person), 'James Blunt')


class TestFellowClass(unittest.TestCase):
    """Test suite for the Fellow Model"""

    def test_created_fellow_successfully(self):
        new_fellow = Fellow(fname='Van', lname='Rossum')
        self.assertTrue(new_fellow)
        self.assertEqual(new_fellow.fname, 'Van')
        self.assertEqual(new_fellow.lname, 'Rossum')
        self.assertEqual(new_fellow.role, 'fellow')
        self.assertIsInstance(new_fellow, Person)
        self.assertNotIsInstance(new_fellow, Staff)
        self.assertIsInstance(new_fellow, Fellow)

    def test_fellow_repr(self):
        new_fellow = Fellow(fname='Ivan', lname='Lotti')
        self.assertEqual(str(new_fellow), 'Ivan Lotti')


class TestStaffClass(unittest.TestCase):
    """Test suite for the Staff Model"""

    def test_created_staff_successfully(self):
        new_staff = Staff(fname='Lanre', lname='Ogunmefun')
        self.assertTrue(new_staff)
        self.assertEqual(new_staff.fname, 'Lanre')
        self.assertEqual(new_staff.lname, 'Ogunmefun')
        self.assertEqual(new_staff.role, "staff")
        self.assertIsInstance(new_staff, Person)
        self.assertNotIsInstance(new_staff, Fellow)
        self.assertIsInstance(new_staff, Staff)

    def test_staff_repr(self):
        new_staff = Staff(fname='mark', lname='andrew')
        self.assertEqual(str(new_staff), 'Mark Andrew')


if '__name__' == '__main__':
    unittest.main()

9e9b574f53d6750a7664da354704b1d4e6d40cc1
<mask token>


class TestFellowClass(unittest.TestCase):
    <mask token>
    <mask token>
    <mask token>


class TestStaffClass(unittest.TestCase):
    """Test suite for the Staff Model"""

    def test_created_staff_successfully(self):
        new_staff = Staff(fname='Lanre', lname='Ogunmefun')
        self.assertTrue(new_staff)
        self.assertEqual(new_staff.fname, 'Lanre')
        self.assertEqual(new_staff.lname, 'Ogunmefun')
        self.assertEqual(new_staff.role, 'staff')
        self.assertIsInstance(new_staff, Person)
        self.assertNotIsInstance(new_staff, Fellow)
        self.assertIsInstance(new_staff, Staff)

    def test_staff_repr(self):
        new_staff = Staff(fname='mark', lname='andrew')
        self.assertEqual(str(new_staff), 'Mark Andrew')


<mask token>

<mask token>


class TestFellowClass(unittest.TestCase):
    <mask token>

    def test_created_fellow_successfully(self):
        new_fellow = Fellow(fname='Van', lname='Rossum')
        self.assertTrue(new_fellow)
        self.assertEqual(new_fellow.fname, 'Van')
        self.assertEqual(new_fellow.lname, 'Rossum')
        self.assertEqual(new_fellow.role, 'fellow')
        self.assertIsInstance(new_fellow, Person)
        self.assertNotIsInstance(new_fellow, Staff)
        self.assertIsInstance(new_fellow, Fellow)

    def test_fellow_repr(self):
        new_fellow = Fellow(fname='Ivan', lname='Lotti')
        self.assertEqual(str(new_fellow), 'Ivan Lotti')


class TestStaffClass(unittest.TestCase):
    """Test suite for the Staff Model"""

    def test_created_staff_successfully(self):
        new_staff = Staff(fname='Lanre', lname='Ogunmefun')
        self.assertTrue(new_staff)
        self.assertEqual(new_staff.fname, 'Lanre')
        self.assertEqual(new_staff.lname, 'Ogunmefun')
        self.assertEqual(new_staff.role, 'staff')
        self.assertIsInstance(new_staff, Person)
        self.assertNotIsInstance(new_staff, Fellow)
        self.assertIsInstance(new_staff, Staff)

    def test_staff_repr(self):
        new_staff = Staff(fname='mark', lname='andrew')
        self.assertEqual(str(new_staff), 'Mark Andrew')


<mask token>

<mask token>


class TestPersonClass(unittest.TestCase):
    <mask token>
    <mask token>
    <mask token>


class TestFellowClass(unittest.TestCase):
    """Test suite for the Fellow Model"""

    def test_created_fellow_successfully(self):
        new_fellow = Fellow(fname='Van', lname='Rossum')
        self.assertTrue(new_fellow)
        self.assertEqual(new_fellow.fname, 'Van')
        self.assertEqual(new_fellow.lname, 'Rossum')
        self.assertEqual(new_fellow.role, 'fellow')
        self.assertIsInstance(new_fellow, Person)
        self.assertNotIsInstance(new_fellow, Staff)
        self.assertIsInstance(new_fellow, Fellow)

    def test_fellow_repr(self):
        new_fellow = Fellow(fname='Ivan', lname='Lotti')
        self.assertEqual(str(new_fellow), 'Ivan Lotti')


class TestStaffClass(unittest.TestCase):
    """Test suite for the Staff Model"""

    def test_created_staff_successfully(self):
        new_staff = Staff(fname='Lanre', lname='Ogunmefun')
        self.assertTrue(new_staff)
        self.assertEqual(new_staff.fname, 'Lanre')
        self.assertEqual(new_staff.lname, 'Ogunmefun')
        self.assertEqual(new_staff.role, 'staff')
        self.assertIsInstance(new_staff, Person)
        self.assertNotIsInstance(new_staff, Fellow)
        self.assertIsInstance(new_staff, Staff)

    def test_staff_repr(self):
        new_staff = Staff(fname='mark', lname='andrew')
        self.assertEqual(str(new_staff), 'Mark Andrew')


<mask token>

import os
import sys
import unittest
from testcontext import Fellow, Person, Staff


class TestPersonClass(unittest.TestCase):
    """The test for the Person Model, its attributes
    and mehods."""

    def test_created_person_successfully(self):
        new_person = Person(fname='Ladi', lname='Adeniran', role=
            'software developer')
        self.assertTrue(new_person)
        self.assertIsInstance(new_person, Person)
        self.assertEqual(new_person.fname, 'Ladi')
        self.assertEqual(new_person.lname, 'Adeniran')
        self.assertEqual(new_person.role, 'software developer')

    def test_person_repr_method(self):
        new_person = Person(fname='James', lname='Blunt', role='Singer')
        self.assertEqual(str(new_person), 'James Blunt')


class TestFellowClass(unittest.TestCase):
    """Test suite for the Fellow Model"""

    def test_created_fellow_successfully(self):
        new_fellow = Fellow(fname='Van', lname='Rossum')
        self.assertTrue(new_fellow)
        self.assertEqual(new_fellow.fname, 'Van')
        self.assertEqual(new_fellow.lname, 'Rossum')
        self.assertEqual(new_fellow.role, 'fellow')
        self.assertIsInstance(new_fellow, Person)
        self.assertNotIsInstance(new_fellow, Staff)
        self.assertIsInstance(new_fellow, Fellow)

    def test_fellow_repr(self):
        new_fellow = Fellow(fname='Ivan', lname='Lotti')
        self.assertEqual(str(new_fellow), 'Ivan Lotti')


class TestStaffClass(unittest.TestCase):
    """Test suite for the Staff Model"""

    def test_created_staff_successfully(self):
        new_staff = Staff(fname='Lanre', lname='Ogunmefun')
        self.assertTrue(new_staff)
        self.assertEqual(new_staff.fname, 'Lanre')
        self.assertEqual(new_staff.lname, 'Ogunmefun')
        self.assertEqual(new_staff.role, 'staff')
        self.assertIsInstance(new_staff, Person)
        self.assertNotIsInstance(new_staff, Fellow)
        self.assertIsInstance(new_staff, Staff)

    def test_staff_repr(self):
        new_staff = Staff(fname='mark', lname='andrew')
        self.assertEqual(str(new_staff), 'Mark Andrew')


if '__name__' == '__main__':
    unittest.main()

#!/usr/bin/env python

import os
import sys
import unittest
from testcontext import Fellow, Person, Staff


class TestPersonClass(unittest.TestCase):
    """The test for the Person Model, its attributes
    and mehods."""

    def test_created_person_successfully(self):
        new_person = Person(fname='Ladi', lname='Adeniran',
                            role='software developer')
        self.assertTrue(new_person)
        self.assertIsInstance(new_person, Person)
        self.assertEqual(new_person.fname, 'Ladi')
        self.assertEqual(new_person.lname, 'Adeniran')
        self.assertEqual(new_person.role, 'software developer')

    def test_person_repr_method(self):
        new_person = Person(fname='James', lname='Blunt', role='Singer')
        self.assertEqual(str(new_person), 'James Blunt')


class TestFellowClass(unittest.TestCase):
    """Test suite for the Fellow Model"""

    def test_created_fellow_successfully(self):
        new_fellow = Fellow(fname='Van', lname='Rossum')
        self.assertTrue(new_fellow)
        self.assertEqual(new_fellow.fname, 'Van')
        self.assertEqual(new_fellow.lname, 'Rossum')
        self.assertEqual(new_fellow.role, 'fellow')
        self.assertIsInstance(new_fellow, Person)
        self.assertNotIsInstance(new_fellow, Staff)
        self.assertIsInstance(new_fellow, Fellow)

    def test_fellow_repr(self):
        new_fellow = Fellow(fname='Ivan', lname='Lotti')
        self.assertEqual(str(new_fellow), 'Ivan Lotti')


class TestStaffClass(unittest.TestCase):
    """Test suite for the Staff Model"""

    def test_created_staff_successfully(self):
        new_staff = Staff(fname='Lanre', lname='Ogunmefun')
        self.assertTrue(new_staff)
        self.assertEqual(new_staff.fname, 'Lanre')
        self.assertEqual(new_staff.lname, 'Ogunmefun')
        self.assertEqual(new_staff.role, "staff")
        self.assertIsInstance(new_staff, Person)
        self.assertNotIsInstance(new_staff, Fellow)
        self.assertIsInstance(new_staff, Staff)

    def test_staff_repr(self):
        new_staff = Staff(fname='mark', lname='andrew')
        self.assertEqual(str(new_staff), 'Mark Andrew')


if '__name__' == '__main__':
    unittest.main()
