def tearDown(self):
        if not Article._meta.get_latest_by:
            Article._meta.get_latest_by = 'pub_date'
Makes sure Article has a get_latest_by
dataset/ETHPy150Open django/django/tests/get_earliest_or_latest/tests.py/EarliestOrLatestTests.tearDown