def test_create_tag_successful(self):
    'Test creating a new tag'
    payload = {'name': 'Simple'}
    self.client.post(TAGS_URL, payload)
    exists = Tag.objects.filter(user=self.user, name=payload['name']).exists()
    self.assertTrue(exists)
Test creating a new tag
def test_create_tag_successful(self):
    
    payload = {'name': 'Simple'}
    self.client.post(TAGS_URL, payload)
    exists = Tag.objects.filter(user=self.user, name=payload['name']).exists()
    self.assertTrue(exists)