'Verify only authenticated users can access the view.'

@ddt.data('get', 'post', 'put')
def test_authentication_required(self, method):

    self.client.logout()
    response = getattr(self.client, method)(self.path, content_type=JSON_CONTENT_TYPE)
    self.assertEqual(response.status_code, 401)
