def test_callback_decorated_methods_registered(self):

        class Artist(Model):
            @before_save
            def bef_save(self):
                pass

            @after_save
            def aft_save(self):
                pass

            @before_delete
            def bef_delete(self):
                pass

            @after_delete
            def aft_delete(self):
                pass

            @after_init
            def aft_init(self):
                pass

        assert 'bef_save' in Artist._callbacks['before_save']
        assert 'aft_save' in Artist._callbacks['after_save']
        assert 'bef_delete' in Artist._callbacks['before_delete']
        assert 'aft_delete' in Artist._callbacks['after_delete']
        assert 'aft_init' in Artist._callbacks['after_init']
Call the errback on all outstanding requests awaiting responses.
dataset/ETHPy150Open linkyndy/remodel/tests/test_models.py/ModelTests.test_callback_decorated_methods_registered--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/protocols/amp.py/BoxDispatcher.failAllOutgoing