示例#1
0
 def test_will_use_single_storers_defined(self):
     utils.metadata_storers(self.dataset, self.custom)
     self.assertEqual('abc123cfde', self.dataset.uuid)
     self.assertEqual("updated abstract", self.dataset.abstract)
示例#2
0
 def test_will_use_multiple_storers_defined(self):
     dataset = utils.metadata_storers(self.dataset, self.custom)
     self.assertEqual('abc123cfde', dataset.uuid)
     self.assertEqual("another update", dataset.abstract)
     self.assertEqual("Updated Title", dataset.title)
示例#3
0
 def test_will_use_multiple_storers_defined(self):
     layer = utils.metadata_storers(self.layer, self.custom)
     self.assertEqual('abc123cfde', layer.uuid)
     self.assertEqual("another update", layer.abstract)
     self.assertEqual("Updated Title", layer.title)