def test_invalid_date(self):
    resp = self.client.get('/api/v1/notes/', data={'format': 'json', 'created__gte': 'foo-baz-bar'})
    self.assertEqual(resp.status_code, 400)
def test_invalid_date(self):
    resp = self.client.get('/api/v1/notes/', data={'format': 'json', 'created__gte': 'foo-baz-bar'})
    self.assertEqual(resp.status_code, 400)