示例#1
0
 def test_not_implemented_methods(self):
     
     # nosetests -s -v dlstats.tests.fetchers.test__commons:FetcherTestCase.test_not_implemented_methods
     
     f = Fetcher(provider_name="test", is_indexes=False)
     
     with self.assertRaises(NotImplementedError):
         f.upsert_dataset(None)
    def test_not_implemented_methods(self):

        f = Fetcher()

        with self.assertRaises(NotImplementedError):
            f.upsert_categories()

        with self.assertRaises(NotImplementedError):
            f.upsert_series()

        with self.assertRaises(NotImplementedError):
            f.upsert_a_series(None)

        with self.assertRaises(NotImplementedError):
            f.upsert_dataset(None)
    def test_not_implemented_methods(self):
        
        f = Fetcher()

        with self.assertRaises(NotImplementedError):
            f.upsert_categories()

        with self.assertRaises(NotImplementedError):
            f.upsert_series()

        with self.assertRaises(NotImplementedError):
            f.upsert_a_series(None)

        with self.assertRaises(NotImplementedError):
            f.upsert_dataset(None)