def returns_one_appointement():
     res = "1;3/13/2015 8:00:00 AM;3/13/2015 1:00:00 PM;C5CA"
     appointment = file_parser.parse_appointment(res)
     expected_appointment = ("1", file_parser.Appointment(file_parser.parse_date("3/13/2015 8:00:00 AM"), file_parser.parse_date("3/13/2015 1:00:00 PM")))
     assert_that(appointment[1], instance_of(file_parser.Appointment))
     assert_that(appointment[0], equal_to("1"))
     assert_that(appointment[1].start, expected_appointment[1].start)
     assert_that(appointment[1].end, expected_appointment[1].end)
 def returns_a_user_without_name_and_one_meeting():
     res = io.StringIO("1;3/13/2015 8:00:00 AM;3/13/2015 1:00:00 PM;C5CA")
     persons = file_parser.parse(res)
     assert_that(persons[0].name, equal_to(""))
     assert_that(persons[0].appointments[0].start, equal_to(file_parser.parse_date("3/13/2015 8:00:00 AM")))
 def returns_a_date():
     date_str = "1/3/2015 1:00:00 PM"
     expected = arrow.Arrow(2015, 1, 3, 13)
     actual = file_parser.parse_date(date_str)
     assert_that(actual, equal_to(expected))