コード例 #1
0
ファイル: tests.py プロジェクト: rojoca/auth-service-client
 def test_cannot_create_credential_with_existing_username(self):
     with self.assertRaises(api.BadCredentialValue):
         api.create_credential("yellow", "password2")
コード例 #2
0
ファイル: tests.py プロジェクト: rojoca/auth-service-client
 def test_cannot_create_credential_with_empty_password(self):
     with self.assertRaises(api.BadCredentialValue):
         api.create_credential("yellow2", "")
コード例 #3
0
ファイル: tests.py プロジェクト: rojoca/auth-service-client
 def test_cannot_create_credential_with_empty_username_and_password(self):
     with self.assertRaises(api.BadCredentialValue):
         api.create_credential("", "")
コード例 #4
0
ファイル: tests.py プロジェクト: rojoca/auth-service-client
 def setUp(self):
     api.create_credential("yellow", "password1")
     api.create_credential("red", "password2")