Exemple #1
0
 def test_get_all_when_no_sources(self):
     source = MultiDataSource()
     self.assertEqual(len(source.get_all()), 0)
Exemple #2
0
 def test_get_all_when_sources(self):
     source = MultiDataSource(self.sources)
     self.assertIsInstance(source.get_all()[0], type(self.data[0]))
     self.assertCountEqual(source.get_all(), self.data)
Exemple #3
0
 def test_init_change_of_source_list_has_no_effect(self):
     source = MultiDataSource(self.sources)
     self.sources.pop()
     self.assertCountEqual(source.get_all(), self.data)