'Check that the AttributeError from AttributeErrorRouter bubbles up'

def test_attribute_error_read(self):

    router.routers = []
    b = Book.objects.create(title=u'Pro    Django', published=datetime.date(2008, 12, 16))
    router.routers = [AttributeErrorRouter()]
    self.assertRaises(AttributeError, Book.objects.get, pk=b.pk)
