Exemplo n.º 1
0
    def test_role_create(self):
        """
        Test if it create named role
        """
        self.assertDictEqual(keystone.role_create("nova"),
                             {"Error": 'Role "nova" already exists'})

        self.assertDictEqual(keystone.role_create("iptables"),
                             {"Error": "Unable to resolve role id"})
Exemplo n.º 2
0
    def test_role_create(self, mock):
        '''
        Test if it create named role
        '''
        self.assertDictEqual(keystone.role_create('nova'),
                             {'Error': 'Role "nova" already exists'})

        self.assertDictEqual(keystone.role_create('iptables'),
                             {'Error': 'Unable to resolve role id'})
Exemplo n.º 3
0
    def test_role_create(self, mock):
        '''
        Test if it create named role
        '''
        self.assertDictEqual(keystone.role_create('nova'),
                             {'Error': 'Role "nova" already exists'})

        self.assertDictEqual(keystone.role_create('iptables'),
                             {'Error': 'Unable to resolve role id'})