def test_attribute_error_read(self):
        b = Book.objects.create(title="Pro Django",
                                published=datetime.date(2008, 12, 16))
        with self.override_router():
            with self.assertRaises(AttributeError):
                Book.objects.get(pk=b.pk)
Initialize the underlying widget.
dataset/ETHPy150Open django/django/tests/multiple_database/tests.py/RouterAttributeErrorTestCase.test_attribute_error_read--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_color_dialog.py/QtColorDialog.init_widget