'Test category filtering'

def test_category_filters(self):

    filter_url = (self.list_url + '?category__identifier=location')
    resp = self.api_client.get(filter_url)
    self.assertValidJSONResponse(resp)
    self.assertEquals(len(self.deserialize(resp)['objects']), 3)
    filter_url = (self.list_url + '?category__identifier__in=location&category__identifier__in=biota')
    resp = self.api_client.get(filter_url)
    self.assertValidJSONResponse(resp)
    self.assertEquals(len(self.deserialize(resp)['objects']), 5)
