def test_authenticated_user(self):
        TestUsers.new_user(username='user', password='user')
        self.client.login(username='user', password='user')

        response = self.get_response(self.country.id, params=self.params)
        self.assertMethodNotAllowed(response, 'PATCH')
Authenticated users shouldn't be able to update countries.
dataset/ETHPy150Open bmun/huxley/huxley/api/tests/test_country.py/CountryDetailPatchTestCase.test_authenticated_user