예제 #1
0
 def test_namespace_name():
     key = key_module.Key(metadata.Namespace.KIND_NAME, "test")
     namespace = metadata.Namespace(key=key)
     assert namespace.namespace_name == "test"
예제 #2
0
 def test_constructor():
     namespace = metadata.Namespace()
     assert namespace.__dict__ == {"_values": {}}
예제 #3
0
 def test_constructor():
     with pytest.raises(NotImplementedError):
         metadata.Namespace()