def test_matching_namespace(self): reference = make_reference() ds_key = key_module._from_reference(reference, None, "space") assert ds_key == google.cloud.datastore.Key( "Parent", 59, "Child", "Feather", project="sample-app", namespace="space", )
def test_matching_namespace(self): reference = make_reference() ds_key = key_module._from_reference(reference, None, "space") assert ds_key == google.cloud.datastore.Key( "Parent", 59, "Child", "Feather", project="sample-app", namespace="space", )
def test_differing_namespace(self): reference = make_reference() with pytest.raises(RuntimeError): key_module._from_reference(reference, None, "pickles")
def test_differing_namespace(self): reference = make_reference() with pytest.raises(RuntimeError): key_module._from_reference(reference, None, "pickles")