285
319
self.ctx.trust_id = 'atrust123'
286
320
self.ctx.trustor_user_id = 'atrustor123'
287
323
db_creds = db_api.user_creds_create(self.ctx)
288
324
load_creds = db_api.user_creds_get(db_creds.id)
290
326
self.assertIsNone(load_creds.get('username'))
291
327
self.assertIsNone(load_creds.get('password'))
294
328
self.assertIsNotNone(load_creds.get('created_at'))
295
329
self.assertIsNone(load_creds.get('updated_at'))
296
330
self.assertIsNone(load_creds.get('auth_url'))
297
333
self.assertEqual(load_creds.get('trust_id'), 'atrust123')
298
334
self.assertEqual(load_creds.get('trustor_user_id'), 'atrustor123')