예제 #1
0
    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))
예제 #2
0
    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))
예제 #3
0
 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))
예제 #4
0
 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))
예제 #5
0
 def test_start_of_day_is_valid(self):
     assert_that(DAY.valid_start_at(d(2013, 10, 18, 0, 0, 0)), is_(True))