Example #1
0
 def test_can_be_empty(self):
     w = Week()
     for i in xrange(7):
         self.assertEquals(w.get_day(i), None)
Example #2
0
 def test_can_be_empty(self):
     w = Week()
     for i in xrange(7):
         self.assertEquals(w.get_day(i), None)
Example #3
0
 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)))
Example #4
0
 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)))