Beispiel #1
0
 def test_fails_on_bad_input(self, principal):
     with pytest.raises(ValueError):
         extract_username_from_principal(principal)
Beispiel #2
0
 def test_fails_on_bad_input(self, principal):
     with pytest.raises(ValueError):
         extract_username_from_principal(principal)
Beispiel #3
0
 def test_success(self, principal, username):
     assert extract_username_from_principal(principal) == username
Beispiel #4
0
 def test_success(self, principal, username):
     assert extract_username_from_principal(principal) == username