

def test_lookup_type_deprecation(self):
    '\n        Make sure user is alerted when using deprecated ``lookup_type``.\n        '
    with warnings.catch_warnings(record=True) as w:
        warnings.simplefilter('always')
        Filter(lookup_type='exact')
        self.assertEqual(len(w), 1)
        self.assertTrue(issubclass(w[(- 1)].category, DeprecationWarning))

dataset/ETHPy150Open carltongibson/django-filter/tests/test_filters.py FilterTests.test_lookup_type_deprecation/original