'Ensure admin changelist filters do not contain objects excluded via limit_choices_to.
This also tests relation-spanning filters (e.g. \'color__value\').'

def testLimitedFilter(self):

    response = self.client.get((u'/test_admin/%s/admin_views/thing/' % self.urlbit))
    self.assertEqual(response.status_code, 200)
    self.assertContains(response, u'<div    id="changelist-filter">', msg_prefix=u'Expected    filter    not    found    in    changelist    view')
    self.assertNotContains(response, u'<a    href="?color__id__exact=3">Blue</a>', msg_prefix=u'Changelist    filter    not    correctly    limited    by    limit_choices_to')
