def test_humanAgent_with_invalid_identifier(rf): request = rf.get('/') response = views.humanAgent(request, 'test-identifier') assert response.status_code == 200
def test_humanAgent_returns_ok(rf): agent = factories.AgentFactory.create() request = rf.get('/') response = views.humanAgent(request, agent.agent_identifier) assert response.status_code == 200