Did I find the right examples for you? yes no

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/m/o/mongoengine-0.8.7/tests/test_signals.py   mongoengine(Download)
        def create_author():
            self.Author(name='Bill Shakespeare')
 
        def bulk_create_author_with_load():
            a1 = self.Author(name='Bill Shakespeare')
            self.Author.objects.insert([a1], load_bulk=True)
 
        def bulk_create_author_without_load():
            a1 = self.Author(name='Bill Shakespeare')
        ])
 
        a1 = self.Author(name='Bill Shakespeare')
        self.assertEqual(self.get_signal_output(a1.save), [
            "pre_save signal, Bill Shakespeare",

src/n/o/noc-0.7(3)/contrib/src/mongoengine/tests/signals.py   noc(Download)
        def create_author():
            a1 = self.Author(name='Bill Shakespeare')
 
        self.assertEqual(self.get_signal_output(create_author), [
            "pre_init signal, Author",
            "{'name': 'Bill Shakespeare'}",
            "post_init signal, Bill Shakespeare",
        ])
 
        a1 = self.Author(name='Bill Shakespeare')