def setUp(self):
        super(TestModels, self).setUp()

        Stats.delete_all()
        connection.use_debug_cursor = True
        connection.cursor().execute("SET enable_seqscan = off")
        self.preserve_stats_wipe = settings.STATS_SIMPLE_WIPE
 def tearDown(self):
     connection.cursor().execute("SET enable_seqscan = on")
     connection.use_debug_cursor = False
     Stats.delete_all()
     settings.STATS_SIMPLE_WIPE = self.preserve_stats_wipe
 def tearDown(self):
     Stats.delete_all()
     settings.STATS_SIMPLE_WIPE = self.preserve_stats_wipe
 def setUp(self):
     Stats.delete_all()
     self.preserve_stats_wipe = settings.STATS_SIMPLE_WIPE