from code import Student
import unittest


class TestStudent(unittest.TestCase):
    def test_get_directory(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        directory = student.get_directory()
        self.assertEqual(directory, mockDirectory)

    def test_get_student_name(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        name = student.get_student_name()
        self.assertEqual(name, 'test')

    def test_get_validation_info(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        validation_info = student.get_validation_info()
        self.assertEqual(validation_info, "Format is correct")

    def test_get_validation(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_validation = student.get_validation()
        self.assertEqual(get_validation, True)

    def test_get_dictionary_of_schedule(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_dictionary_of_schedule = student.get_dictionary_of_schedule()
        self.assertEqual(get_dictionary_of_schedule, {})

    def test_get_dictionary_of_time_interval(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_dictionary_of_time_interval = student.get_dictionary_of_time_interval()
        self.assertEqual(get_dictionary_of_time_interval, {})

    def test_open_file(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        # Expect no errors to be raised
        student.open_file()


    def test_load(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        # Expect no errors to be raised
        student.load()

    def test_edit_file(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        # Expect no errors to be raised
        student.edit_file()

    def test_validate_start_or_end_true(self):
        mockDirectory = 'test.csv'
        testDate = '00:00'
        student = Student(mockDirectory)
        self.assertTrue(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_exception(self):
        mockDirectory = 'test.csv'
        testDate = 'aaa'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_length(self):
        mockDirectory = 'test.csv'
        testDate = '000:000'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_greater_than_hour(self):
        mockDirectory = 'test.csv'
        testDate = '24:00'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_greater_minute(self):
        mockDirectory = 'test.csv'
        testDate = '23:60'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))



795b5d36868810d4b474f05ae975f9755a8e3805
<mask token>


class TestStudent(unittest.TestCase):

    def test_get_directory(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        directory = student.get_directory()
        self.assertEqual(directory, mockDirectory)
    <mask token>

    def test_get_validation_info(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        validation_info = student.get_validation_info()
        self.assertEqual(validation_info, 'Format is correct')

    def test_get_validation(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_validation = student.get_validation()
        self.assertEqual(get_validation, True)
    <mask token>

    def test_get_dictionary_of_time_interval(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_dictionary_of_time_interval = (student.
            get_dictionary_of_time_interval())
        self.assertEqual(get_dictionary_of_time_interval, {})

    def test_open_file(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        student.open_file()
    <mask token>
    <mask token>

    def test_validate_start_or_end_true(self):
        mockDirectory = 'test.csv'
        testDate = '00:00'
        student = Student(mockDirectory)
        self.assertTrue(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_exception(self):
        mockDirectory = 'test.csv'
        testDate = 'aaa'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_length(self):
        mockDirectory = 'test.csv'
        testDate = '000:000'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_greater_than_hour(self):
        mockDirectory = 'test.csv'
        testDate = '24:00'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_greater_minute(self):
        mockDirectory = 'test.csv'
        testDate = '23:60'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

<mask token>


class TestStudent(unittest.TestCase):

    def test_get_directory(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        directory = student.get_directory()
        self.assertEqual(directory, mockDirectory)

    def test_get_student_name(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        name = student.get_student_name()
        self.assertEqual(name, 'test')

    def test_get_validation_info(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        validation_info = student.get_validation_info()
        self.assertEqual(validation_info, 'Format is correct')

    def test_get_validation(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_validation = student.get_validation()
        self.assertEqual(get_validation, True)
    <mask token>

    def test_get_dictionary_of_time_interval(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_dictionary_of_time_interval = (student.
            get_dictionary_of_time_interval())
        self.assertEqual(get_dictionary_of_time_interval, {})

    def test_open_file(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        student.open_file()

    def test_load(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        student.load()
    <mask token>

    def test_validate_start_or_end_true(self):
        mockDirectory = 'test.csv'
        testDate = '00:00'
        student = Student(mockDirectory)
        self.assertTrue(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_exception(self):
        mockDirectory = 'test.csv'
        testDate = 'aaa'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_length(self):
        mockDirectory = 'test.csv'
        testDate = '000:000'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_greater_than_hour(self):
        mockDirectory = 'test.csv'
        testDate = '24:00'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_greater_minute(self):
        mockDirectory = 'test.csv'
        testDate = '23:60'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

<mask token>


class TestStudent(unittest.TestCase):

    def test_get_directory(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        directory = student.get_directory()
        self.assertEqual(directory, mockDirectory)

    def test_get_student_name(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        name = student.get_student_name()
        self.assertEqual(name, 'test')

    def test_get_validation_info(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        validation_info = student.get_validation_info()
        self.assertEqual(validation_info, 'Format is correct')

    def test_get_validation(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_validation = student.get_validation()
        self.assertEqual(get_validation, True)

    def test_get_dictionary_of_schedule(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_dictionary_of_schedule = student.get_dictionary_of_schedule()
        self.assertEqual(get_dictionary_of_schedule, {})

    def test_get_dictionary_of_time_interval(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_dictionary_of_time_interval = (student.
            get_dictionary_of_time_interval())
        self.assertEqual(get_dictionary_of_time_interval, {})

    def test_open_file(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        student.open_file()

    def test_load(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        student.load()

    def test_edit_file(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        student.edit_file()

    def test_validate_start_or_end_true(self):
        mockDirectory = 'test.csv'
        testDate = '00:00'
        student = Student(mockDirectory)
        self.assertTrue(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_exception(self):
        mockDirectory = 'test.csv'
        testDate = 'aaa'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_length(self):
        mockDirectory = 'test.csv'
        testDate = '000:000'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_greater_than_hour(self):
        mockDirectory = 'test.csv'
        testDate = '24:00'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_greater_minute(self):
        mockDirectory = 'test.csv'
        testDate = '23:60'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

from code import Student
import unittest


class TestStudent(unittest.TestCase):

    def test_get_directory(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        directory = student.get_directory()
        self.assertEqual(directory, mockDirectory)

    def test_get_student_name(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        name = student.get_student_name()
        self.assertEqual(name, 'test')

    def test_get_validation_info(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        validation_info = student.get_validation_info()
        self.assertEqual(validation_info, 'Format is correct')

    def test_get_validation(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_validation = student.get_validation()
        self.assertEqual(get_validation, True)

    def test_get_dictionary_of_schedule(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_dictionary_of_schedule = student.get_dictionary_of_schedule()
        self.assertEqual(get_dictionary_of_schedule, {})

    def test_get_dictionary_of_time_interval(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_dictionary_of_time_interval = (student.
            get_dictionary_of_time_interval())
        self.assertEqual(get_dictionary_of_time_interval, {})

    def test_open_file(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        student.open_file()

    def test_load(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        student.load()

    def test_edit_file(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        student.edit_file()

    def test_validate_start_or_end_true(self):
        mockDirectory = 'test.csv'
        testDate = '00:00'
        student = Student(mockDirectory)
        self.assertTrue(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_exception(self):
        mockDirectory = 'test.csv'
        testDate = 'aaa'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_length(self):
        mockDirectory = 'test.csv'
        testDate = '000:000'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_greater_than_hour(self):
        mockDirectory = 'test.csv'
        testDate = '24:00'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_greater_minute(self):
        mockDirectory = 'test.csv'
        testDate = '23:60'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

from code import Student
import unittest


class TestStudent(unittest.TestCase):
    def test_get_directory(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        directory = student.get_directory()
        self.assertEqual(directory, mockDirectory)

    def test_get_student_name(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        name = student.get_student_name()
        self.assertEqual(name, 'test')

    def test_get_validation_info(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        validation_info = student.get_validation_info()
        self.assertEqual(validation_info, "Format is correct")

    def test_get_validation(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_validation = student.get_validation()
        self.assertEqual(get_validation, True)

    def test_get_dictionary_of_schedule(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_dictionary_of_schedule = student.get_dictionary_of_schedule()
        self.assertEqual(get_dictionary_of_schedule, {})

    def test_get_dictionary_of_time_interval(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        get_dictionary_of_time_interval = student.get_dictionary_of_time_interval()
        self.assertEqual(get_dictionary_of_time_interval, {})

    def test_open_file(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        # Expect no errors to be raised
        student.open_file()


    def test_load(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        # Expect no errors to be raised
        student.load()

    def test_edit_file(self):
        mockDirectory = 'test.csv'
        student = Student(mockDirectory)
        # Expect no errors to be raised
        student.edit_file()

    def test_validate_start_or_end_true(self):
        mockDirectory = 'test.csv'
        testDate = '00:00'
        student = Student(mockDirectory)
        self.assertTrue(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_exception(self):
        mockDirectory = 'test.csv'
        testDate = 'aaa'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_length(self):
        mockDirectory = 'test.csv'
        testDate = '000:000'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_greater_than_hour(self):
        mockDirectory = 'test.csv'
        testDate = '24:00'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))

    def test_validate_start_or_end_greater_minute(self):
        mockDirectory = 'test.csv'
        testDate = '23:60'
        student = Student(mockDirectory)
        self.assertFalse(student.validate_start_or_end(testDate))


