          return False
  
  
  class SQLCommandsRouterTestCase(TestCase):
      def setUp(self):
          self._old_routers = router.routers
          router.routers = [TestRouter()]
  
      def tearDown(self):
          router.routers = self._old_routers
  
      def test_router_honored(self):
          app_config = apps.get_app_config('commands_sql')
          for sql_command in (sql_all, sql_create, sql_delete, sql_indexes, sql_destroy_indexes):
              if sql_command is sql_delete:
 
</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):
        self.old_routers = router.routers
        router.routers = [OtherRouter()]

    def tearDown(self):
        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         self.old_routers = router.routers
        router.routers = [TestRouter()]

 </s> add 
          return False
  
  
  class SQLCommandsRouterTestCase(TestCase):






  
      def test_router_honored(self):
          app_config = apps.get_app_config('commands_sql')
          for sql_command in (sql_all, sql_create, sql_delete, sql_indexes, sql_destroy_indexes):
              if sql_command is sql_delete:
keep keep keep keep replace replace replace replace replace replace keep keep keep keep keep
 Replaced router.routers usage with override_settings(DATABASE_ROUTERS); refs #23933. 
tests/commands_sql/tests.py