def test_id(self): """Test that the dataset id is not propagated.""" dataset = DatasetType("dataset") child = BaseType("child") child.id = "error" dataset["child"] = child self.assertEqual(child.id, "child")
def test_DatasetType_id(): """Test that the dataset id is not propagated.""" dataset = DatasetType("dataset") child = BaseType("child") child.id = "error" dataset["child"] = child assert (child.id == "child")