Ejemplo n.º 1
0
def test_basic_auth(request_builder):
    # Setup
    basic_auth = auth.BasicAuth("username", "password")

    # Verify
    basic_auth(request_builder)
    auth_str = basic_auth._auth_str
    assert request_builder.info["headers"]["Authorization"] == auth_str
Ejemplo n.º 2
0
 def setup_basic_auth(self):
     return auth.BasicAuth("apiuser", "apipass")