def tearDown(self):
        super(UpdateTests, self).tearDown()

        # Make sure we don't break further tests by resetting this fully.
        checks.reset_check_cache()

        # If test_manual_updates_bad_upload failed in the middle, it could
        # neglect to fix the MEDIA_ROOT, which will break a bunch of future
        # tests. Make sure it's always what we expect.
        settings.MEDIA_ROOT = self.old_media_root
        siteconfig = SiteConfiguration.objects.get_current()
        siteconfig.set('site_media_root', self.old_media_root)
        siteconfig.save()
Read a filenode from a PyTables file and write its contents to a file.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/admin/tests.py/UpdateTests.tearDown--crossover with--dataset/ETHPy150Open PyTables/PyTables/tables/nodes/filenode.py/read_from_filenode