def test_that_beginning_of_the_day_is_a_valid_start_at(self): lovely_starttime = d(2013, 10, 18, 00, 00) assert_that(DAY.valid_start_at(lovely_starttime), is_(True))
def test_that_midday_is_not_a_valid_start_at(self): naughty_starttime = d(2013, 10, 18, 12, 00) assert_that(DAY.valid_start_at(naughty_starttime), is_(False))
def test_start_of_day_plus_second_is_invalid(self): assert_that(DAY.valid_start_at(d(2013, 10, 18, 0, 0, 1)), is_(False))
def test_start_of_day_plus_hour_is_invalid(self): assert_that(DAY.valid_start_at(d(2013, 10, 18, 1, 0, 0)), is_(False))
def test_start_of_day_is_valid(self): assert_that(DAY.valid_start_at(d(2013, 10, 18, 0, 0, 0)), is_(True))