Example #1
0
 def test_script_instantiation(self):
     """Test that RunCollectionCoverageProviderScript can instantiate
     this coverage provider.
     """
     script = RunCollectionCoverageProviderScript(
         BibliothecaBibliographicCoverageProvider,
         self._db,
         api_class=MockBibliothecaAPI)
     [provider] = script.providers
     assert isinstance(provider, BibliothecaBibliographicCoverageProvider)
     assert isinstance(provider.api, MockBibliothecaAPI)
 def test_script_instantiation(self):
     """Test that RunCoverageProviderScript can instantiate
     the coverage provider.
     """
     script = RunCollectionCoverageProviderScript(
         OverdriveBibliographicCoverageProvider,
         self._db,
         api_class=MockOverdriveAPI)
     [provider] = script.providers
     assert isinstance(provider, OverdriveBibliographicCoverageProvider)
     assert isinstance(provider.api, MockOverdriveAPI)
     eq_(self.collection, provider.collection)