예제 #1
0
 def test_token_get(self, mock):
     '''
     Test if it return the configured tokens (keystone token-get)
     '''
     self.assertDictEqual(keystone.token_get(), {'expires': 'No',
                                                 'id': '446',
                                                 'tenant_id': 'ae04',
                                                 'user_id': 'admin'})
예제 #2
0
 def test_token_get(self, mock):
     '''
     Test if it return the configured tokens (keystone token-get)
     '''
     self.assertDictEqual(keystone.token_get(), {'expires': 'No',
                                                 'id': '446',
                                                 'tenant_id': 'ae04',
                                                 'user_id': 'admin'})
예제 #3
0
 def test_token_get(self):
     """
     Test if it return the configured tokens (keystone token-get)
     """
     self.assertDictEqual(
         keystone.token_get(),
         {
             "expires": "No",
             "id": "446",
             "tenant_id": "ae04",
             "user_id": "admin"
         },
     )