'Test date filtering'

def test_date_filter(self):

    filter_url = (self.list_url + '?date__exact=1985-01-01')
    resp = self.api_client.get(filter_url)
    self.assertValidJSONResponse(resp)
    self.assertEquals(len(self.deserialize(resp)['objects']), 1)
    filter_url = (self.list_url + '?date__gte=1985-01-01')
    resp = self.api_client.get(filter_url)
    self.assertValidJSONResponse(resp)
    self.assertEquals(len(self.deserialize(resp)['objects']), 3)
    filter_url = (self.list_url + '?date__range=1950-01-01,1985-01-01')
    resp = self.api_client.get(filter_url)
    self.assertValidJSONResponse(resp)
    self.assertEquals(len(self.deserialize(resp)['objects']), 4)
