

def test_node_instances(self):
    self._create_basic_deployment()
    instances = self.client.node_instances.list(deployment_id=self.deployment_id)
    self.assertEqual(1, len(instances))
    all_instances = self.client.node_instances.list()
    self.assertEqual(1, len(all_instances))
    instance = all_instances[0]
    self.assertIsNotNone(instance.id)
    self.assertEqual(self.deployment_id, instance.deployment_id)
    self.assertEqual(instance.runtime_properties, {
        
    })
    self.assertEqual('uninitialized', instance.state)
    instance = self.client.node_instances.get(instance.id)
    self.assertIsNotNone(instance.id)
    self.assertEqual(self.deployment_id, instance.deployment_id)
    self.assertEqual(instance.runtime_properties, {
        
    })
    self.assertEqual('uninitialized', instance.state)
    self.assertEqual(1, instance.version)

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