Permalink
Browse files

Testes automáticos para ``utils.sync.datacollector.ChangeListIterator``

  • Loading branch information...
1 parent cf49310 commit 3edbf658930a1d9c10dd234d07ed7801c6205f92 @gustavofonseca committed Mar 7, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 opac/utils/tests/tests_datacollector.py
View
5 opac/utils/tests/tests_datacollector.py
@@ -473,6 +473,11 @@ def test_get_issues_from_resource_ids(self):
class ChangesListTests(mocker.MockerTestCase):
+ def test_type_is_checked_at_instantiation(self):
+ from utils.sync.datacollector import ChangesList
+
+ self.assertRaises(TypeError, lambda: ChangesList('must fail'))
+
def test_raw_data_from_scielo_api_is_accepted_on_instantiation(self):
from utils.sync.datacollector import ChangesList, Change

0 comments on commit 3edbf65

Please sign in to comment.