def test_events(self): ra = RidersAllianceDao(self.test_url) events = list(ra.events()) self.assertEqual(2, len(events)) event = events[0] self.assertEqual("#FairFares SoHO Campaign Planning Meeeting", event.name) self.assertEqual("http://salsa.ridersny.org/p/salsa/event/common/public/?event_KEY=84732", event.url) self.assertEqual(event.url, event.rsvp_url) self.assertEqual("Riders Alliance office", event.venue) self.assertEqual("121 6th Avenue (btwn Broome and Watts)\n6th Floor", event.address) self.assertEqual(datetime(2016, 5, 24, 19, 00, 0), event.start) self.assertEqual(datetime(2016, 5, 24, 20, 30, 0), event.end) self.assertEqual("", event.cost) self.assertEqual("", event.description)
def test_live(self): """ Test live data against RA website """ ra = RidersAllianceDao() list(ra.events())