Пример #1
0
 def test_bad_xml_feed(self):
     fp = FeedProcessor(TestFeedLoader(TestFeedLoader.FEED_BAD_XML),
                        MockDatabaseService())
     with self.assertRaises(BadFeedException):
         fp.update_bike_parking()
Пример #2
0
 def test_good_feed(self):
     fp = FeedProcessor(TestFeedLoader(TestFeedLoader.FEED_GOOD),
                        MockDatabaseService())
     fp.update_bike_parking()