def METHOD_NAME(self):
    self.client.logout()
    url = reverse('user-detail', args=(self.alice.username,))
    service_account_meta = self.get_meta_from_headers(
        get_request_headers(self.alice.username)
    )
    service_account_meta['HTTP_HOST'] = settings.TEST_HTTP_HOST
    response = self.client.get(url, **service_account_meta)
    assert response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED