def test_valid_data(self):
    data = json.dumps({'title': 'Test Title', 'slug': 'test-title', 'content': 'This is the content', 'user': {'pk': 1}, 'annotated': {'annotations': 'This is an annotations'}})
    resp = self.client.post('/api/v1/notes/', data=data, content_type='application/json')
    self.assertEqual(resp.status_code, 201)
    note = json.loads(self.client.get(resp['location']).content.decode('utf-8'))
    self.assertTrue(note['annotated'])
def test_valid_data(self):
    data = json.dumps({'title': 'Test Title', 'slug': 'test-title', 'content': 'This is the content', 'user': {'pk': 1}, 'annotated': {'annotations': 'This is an annotations'}})
    resp = self.client.post('/api/v1/notes/', data=data, content_type='application/json')
    self.assertEqual(resp.status_code, 201)
    note = json.loads(self.client.get(resp['location']).content.decode('utf-8'))
    self.assertTrue(note['annotated'])