def test_invalid_url(self):
    data = json.dumps({'title': 'Test title related url', 'slug': 'test-slug-related-url', 'content': 'This is the content', 'user': 'invalid-url'})
    with self.assertRaises(NotFound):
        self.client.post('/api/v1/notes/', data=data, content_type='application/json')
def test_invalid_url(self):
    data = json.dumps({'title': 'Test title related url', 'slug': 'test-slug-related-url', 'content': 'This is the content', 'user': 'invalid-url'})
    with self.assertRaises(NotFound):
        self.client.post('/api/v1/notes/', data=data, content_type='application/json')