

def test_deployments(self):
    self._create_basic_deployment()
    deployments = self.client.deployments.list()
    self.assertEqual(1, len(deployments))
    deployment_id = deployments[0].id
    deployment_by_id = self.client.deployments.get(deployment_id)
    self.assertDictContainsSubset(deployment_by_id, deployments[0])
    self.assertDictContainsSubset(deployments[0], deployment_by_id)

dataset/ETHPy150Open cloudify-cosmo/cloudify-manager/tests/workflow_tests/test_rest_api.py RestAPITest.test_deployments/original