def test_login_required(self):
    'Test that login required for retrieving tags'
    res = self.client.get(TAGS_URL)
    self.assertEqual(res.status_code, status.HTTP_401_UNAUTHORIZED)
Test that login required for retrieving tags
def test_login_required(self):
    
    res = self.client.get(TAGS_URL)
    self.assertEqual(res.status_code, status.HTTP_401_UNAUTHORIZED)