Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/a/n/anki-sync-server-HEAD/tests/test_collection.py   anki-sync-server(Download)
            # check that execute works and auto-creates the collection
            wrapper = CollectionWrapper(self.collection_path)
            ret = wrapper.execute(func, [1, 2, 3], {'key': 'aoeu'})
            self.assertEqual(ret, sentinel.some_object)
            anki_storage_Collection.assert_called_with(self.collection_path)
            func.assert_called_with(col, 1, 2, 3, key='aoeu')
 
            # check that execute always returns False if waitForReturn=False
            func.reset_mock()
            ret = wrapper.execute(func, [1, 2, 3], {'key': 'aoeu'}, waitForReturn=False)