def test_attribute_error_save(self):
        dive = Book()
        dive.title = "Dive into Python"
        dive.published = datetime.date(2009, 5, 4)
        with self.override_router():
            with self.assertRaises(AttributeError):
                dive.save()
Check that the AttributeError from AttributeErrorRouter bubbles up
dataset/ETHPy150Open django/django/tests/multiple_database/tests.py/RouterAttributeErrorTestCase.test_attribute_error_save