Example #1
0
 def test_property_name():
     key = key_module.Key(
         metadata.Kind.KIND_NAME,
         "test",
         metadata.Property.KIND_NAME,
         "test2",
     )
     property = metadata.Property(key=key)
     assert property.property_name == "test2"
Example #2
0
 def test_constructor():
     property = metadata.Property()
     assert property.__dict__ == {"_values": {}}
Example #3
0
 def test_constructor():
     with pytest.raises(NotImplementedError):
         metadata.Property()