def test_at_is_later(self): l = EventList() t = arrow.now() instant = arrow.now().replace(minutes=+1) e = Event("test", t.replace(seconds=-1), t.replace(seconds=+59)) l.append(e) self.assertNotIn(e, l.at(instant))
def test_at_is_now(self): l = EventList() t = arrow.now() instant = arrow.now() e = Event("test", t.replace(seconds=-1), t.replace(seconds=+1)) l.append(e) self.assertIn(e, l.at(instant))