def test_can_be_empty(self): w = Week() for i in xrange(7): self.assertEquals(w.get_day(i), None)
def test_can_set_day(self): w = Week() w.set_day(0, TimeRange(Time(7), Time(17))) self.assertEquals(w.get_day(0), TimeRange(Time(7), Time(17)))