def test_now_short(self): l = EventList() t = arrow.now() e = Event("test", t.replace(seconds=-1), t.replace(seconds=+1)) l.append(e) self.assertIn(e, l.now())
def test_now_large(self): l = EventList() t = arrow.now() e = Event("test", t.replace(years=-1), t.replace(years=+1)) l.append(e) self.assertIn(e, l.now())