Pytest automatic test on IsAdminUser permission applied API

In this test i need to get 200 if the user accessing the API is admin, and 401 otherwise. ANY HELP?

class TestPassenger:
def test_user_admin_returns_200(self):
client = APIClient()
response = client.login(user.is_staff)

    assert response.status_code == status.HTTP_200_OK