def test_signal_kwargs(self):

        def live_and_let_die():
            a = self.Author(name='Bill Shakespeare')
            a.save(signal_kwargs={'live': True, 'die': False})
            a.delete(signal_kwargs={'live': False, 'die': True})

        self.assertEqual(self.get_signal_output(live_and_let_die), [
            "pre_init signal, Author",
            {'name': 'Bill Shakespeare'},
            "post_init signal, Bill Shakespeare, document._created = True",
            "pre_save signal, Bill Shakespeare",
            {'die': False, 'live': True},
            "pre_save_post_validation signal, Bill Shakespeare",
            "Is created",
            {'die': False, 'live': True},
            "post_save signal, Bill Shakespeare",
            "post_save dirty keys, ['name']",
            "Is created",
            {'die': False, 'live': True},
            'pre_delete signal, Bill Shakespeare',
            {'die': True, 'live': False},
            'post_delete signal, Bill Shakespeare',
            {'die': True, 'live': False}
        ])

        def bulk_create_author():
            a1 = self.Author(name='Bill Shakespeare')
            self.Author.objects.insert([a1], signal_kwargs={'key': True})

        self.assertEqual(self.get_signal_output(bulk_create_author), [
            'pre_init signal, Author',
            {'name': 'Bill Shakespeare'},
            'post_init signal, Bill Shakespeare, document._created = True',
            'pre_bulk_insert signal, [<Author: Bill Shakespeare>]',
            {'key': True},
            'pre_init signal, Author',
            {'id': 2, 'name': 'Bill Shakespeare'},
            'post_init signal, Bill Shakespeare, document._created = False',
            'post_bulk_insert signal, [<Author: Bill Shakespeare>]',
            'Is loaded',
            {'key': True}
        ])
Editing a product version reorders the versions.
dataset/ETHPy150Open MongoEngine/mongoengine/tests/test_signals.py/SignalTests.test_signal_kwargs--crossover with--dataset/ETHPy150Open mozilla/moztrap/tests/model/core/models/test_productversion.py/ProductVersionTest.test_editing_a_version_reorders