示例#1
0
 def test_get_all_when_no_sources(self):
     source = MultiDataSource()
     self.assertEqual(len(source.get_all()), 0)
示例#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)
示例#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)