def test_constructor():
     kind = metadata.Kind()
     assert kind.__dict__ == {"_values": {}}
 def test_kind_name():
     key = key_module.Key(metadata.Kind.KIND_NAME, "test")
     kind = metadata.Kind(key=key)
     assert kind.kind_name == "test"
Exemple #3
0
 def test_constructor():
     with pytest.raises(NotImplementedError):
         metadata.Kind()