def METHOD_NAME(self, test_client, session):
    """
        Use of valid Basic Auth credentials
    """
    alice = factories.UserFactory.create(
            active=True,
            username='asdasd',
            password=hash_password('asdasd'),
            roles=['admin'])
    session.add(alice)
    session.commit()
    agent = factories.AgentFactory.create()
    session.add(agent)
    session.commit()
    valid_credentials = base64.b64encode(b"asdasd:asdasd").decode("utf-8")
    headers = [('Authorization', f'Basic {valid_credentials}')]
    res = test_client.get('/v3/agents', headers=headers)
    assert res.status_code == 200