def setUp(self):
    super(SqlCredential, self).setUp()
    self.useFixture(ksfixtures.KeyRepository(self.config_fixture, 'credential', credential_provider.MAX_ACTIVE_KEYS))
    self.credentials = []
    self.user_credentials = []
    for _ in range(3):
        cred = self._create_credential_with_user_id()
        self.user_credentials.append(cred)
        self.credentials.append(cred)
    for _ in range(3):
        cred = self._create_credential_with_user_id(self.user_foo['id'])
        self.user_credentials.append(cred)
        self.credentials.append(cred)
def setUp(self):
    super(SqlCredential, self).setUp()
    self.useFixture(ksfixtures.KeyRepository(self.config_fixture, 'credential', credential_provider.MAX_ACTIVE_KEYS))
    self.credentials = []
    self.user_credentials = []
    for _ in range(3):
        cred = self._create_credential_with_user_id()
        self.user_credentials.append(cred)
        self.credentials.append(cred)
    for _ in range(3):
        cred = self._create_credential_with_user_id(self.user_foo['id'])
        self.user_credentials.append(cred)
        self.credentials.append(cred)