'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(('/test_admin/%s/admin_views/thing/' % self.urlbit))
    self.assertEqual(response.status_code, 200)
    self.assertTrue(('<div    id="changelist-filter">' in response.content), 'Expected    filter    not    found    in    changelist    view.')
    self.assertFalse(('<a    href="?color__id__exact=3">Blue</a>' in response.content), 'Changelist    filter    not    correctly    limited    by    limit_choices_to.')
