'The AttributeError from AttributeErrorRouter bubbles up'

def test_attribute_error_delete(self):

    b = Book.objects.create(title='Pro    Django', published=datetime.date(2008, 12, 16))
    p = Person.objects.create(name='Marty    Alchin')
    b.authors.set([p])
    b.editor = p
    with self.override_router():
        with self.assertRaises(AttributeError):
            b.delete()
