def METHOD_NAME(self):
    class TransactionMediator(Mediator):
        using = router.db_for_write(User)
        def call(self):
            User.objects.create(username="beep")
            raise RuntimeError()
    with pytest.raises(RuntimeError):
        TransactionMediator.run()
    assert not User.objects.filter(username="beep").exists()