示例#1
0
    def test_delete_remove_object(self):
        obj = self.test_create_over_api()
        obj.delete()

        assert not Cluster.exists(self.namespace, obj.id)
示例#2
0
    def test_exists(self, cluster):
        assert not Cluster.exists(cluster._object_namespace, cluster.id)

        cluster.save()
        assert Cluster.exists(cluster._object_namespace, cluster.id)
示例#3
0
 def test_exists(self, cluster):
     assert not Cluster.exists(cluster.id)
     cluster.save()
     assert Cluster.exists(cluster.id)