def test_create_tag_invalid(self):
    'Test creating a new tag with invalid payload'
    payload = {'name': ''}
    res = self.client.post(TAGS_URL, payload)
    self.assertEqual(res.status_code, status.HTTP_400_BAD_REQUEST)
Test creating a new tag with invalid payload
def test_create_tag_invalid(self):
    
    payload = {'name': }
    res = self.client.post(TAGS_URL, payload)
    self.assertEqual(res.status_code, status.HTTP_400_BAD_REQUEST)