Example #1
0
 def test_init_data_can_be_changed(self):
     source = ListDataSource(self.data)
     self.data.append(11)
     self.assertCountEqual(source.get_all(), self.data)
Example #2
0
 def test_get_all(self):
     source = ListDataSource(self.data)
     self.assertCountEqual(source.get_all(), self.data)
Example #3
0
 def test_init_data_optional(self):
     source = ListDataSource()
     for datum in self.data:
         source.data.append(datum)
     self.assertCountEqual(source.get_all(), self.data)