Пример #1
0
 def test_tenant_create(self, mock):
     '''
     Test if it create a keystone tenant
     '''
     self.assertDictEqual(keystone.tenant_create('nova'),
                          {'nova': {'description': 'description',
                                    'id': '446', 'name': 'nova',
                                    'enabled': 'True'}})
Пример #2
0
 def test_tenant_create(self, mock):
     '''
     Test if it create a keystone tenant
     '''
     self.assertDictEqual(keystone.tenant_create('nova'),
                          {'nova': {'description': 'description',
                                    'id': '446', 'name': 'nova',
                                    'enabled': 'True'}})
Пример #3
0
 def test_tenant_create(self):
     """
     Test if it create a keystone tenant
     """
     self.assertDictEqual(
         keystone.tenant_create("nova"),
         {
             "nova": {
                 "description": "description",
                 "id": "446",
                 "name": "nova",
                 "enabled": "True",
             }
         },
     )