def test_multiple_execution(self, test_coll): batch = test_coll.initialize_ordered_bulk_op() batch.insert({}) await batch.execute() with pytest.raises(InvalidOperation): await batch.execute()