

def test_signals_bulk_insert(self):

    def bulk_set_active_post():
        posts = [self.Post(title='Post 1'), self.Post(title='Post 2'), self.Post(title='Post 3')]
        self.Post.objects.insert(posts)
    results = self.get_signal_output(bulk_set_active_post)
    self.assertEqual(self, ["pre_bulk_insert signal, [(<Post: Post 1>, {'active': False}), (<Post: Post 2>, {'active': False}), (<Post: Post 3>, {'active': False})]", {
        
    }, "post_bulk_insert signal, [(<Post: Post 1>, {'active': True}), (<Post: Post 2>, {'active': True}), (<Post: Post 3>, {'active': True})]", 'Is loaded', {
        
    }])

dataset/ETHPy150Open MongoEngine/mongoengine/tests/test_signals.py SignalTests.test_signals_bulk_insert/VarMisuse@74/101 `results`->`self`