'Test owner filtering'

def test_owner_filters(self):

    filter_url = (self.list_url + '?owner__username=user1')
    resp = self.api_client.get(filter_url)
    self.assertValidJSONResponse(resp)
    self.assertEquals(len(self.deserialize(resp)['objects']), 2)
    filter_url = (self.list_url + '?owner__username__in=user1&owner__username__in=foo')
    resp = self.api_client.get(filter_url)
    self.assertValidJSONResponse(resp)
    self.assertEquals(len(self.deserialize(resp)['objects']), 3)
