  
  
  class RouterTestCase(TestCase):
      multi_db = True
  
      def test_db_selection(self):
          "Check that querysets obey the router for db suggestions"
 
</s> remove     def setUp(self):
        # Make the 'other' database appear to be a replica of the 'default'
        self.old_routers = router.routers
        router.routers = [TestRouter()]

    def tearDown(self):
        # Restore the 'other' database as an independent database
        router.routers = self.old_routers

 </s> add  </s> remove     def setUp(self):
        # Make the 'other' database appear to be a replica of the 'default'
        self.old_routers = router.routers
        router.routers = [MigrateNothingRouter()]

    def tearDown(self):
        # Restore the 'other' database as an independent database
        router.routers = self.old_routers

 </s> add  </s> remove     def setUp(self):
        self._old_routers = router.routers
        router.routers = [TestRouter()]

    def tearDown(self):
        router.routers = self._old_routers
 </s> add 
# Make the 'other' database appear to be a replica of the 'default'
@override_settings(DATABASE_ROUTERS=[TestRouter()])
  
  
# Make the 'other' database appear to be a replica of the 'default'
@override_settings(DATABASE_ROUTERS=[TestRouter()])
  class RouterTestCase(TestCase):
      multi_db = True
  
      def test_db_selection(self):
          "Check that querysets obey the router for db suggestions"
keep add keep keep keep keep keep
 Replaced router.routers usage with override_settings(DATABASE_ROUTERS); refs #23933. 
tests/multiple_database/tests.py