Module Expr Str Import alias alias alias Import alias ImportFrom alias Import alias ImportFrom alias alias alias alias alias FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad NameLoad body Return Num If CompareLt NameLoad NameLoad body Return Num Return Num decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return UnaryOpUSub Call NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list Assign NameStore ListLoad Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Slice Import alias If CompareLt AttributeLoad NameLoad attr TupleLoad Num Num body Expr Call AttributeLoad NameLoad attr keyword NameLoad orelse Assign NameStore ListLoad For NameStore NameLoad body For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Break orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore NameLoad If BoolOpOr CompareLt AttributeLoad NameLoad attr TupleLoad Num Num BoolOpAnd CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num CompareLt AttributeLoad NameLoad attr TupleLoad Num Num body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad NameLoad attr CompareLt NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpBitOr BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Num For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr ListLoad Str decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad TryFinally body Expr Call NameLoad finalbody Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad If CompareLt AttributeLoad NameLoad attr TupleLoad Num Num body Assign AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad NameLoad body Return Num Raise NameLoad Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad NameLoad body Return Num Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return Num decorator_list Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore NameLoad If BoolOpOr CompareLt AttributeLoad NameLoad attr TupleLoad Num Num BoolOpAnd CompareGtE AttributeLoad NameLoad attr TupleLoad Num Num CompareLt AttributeLoad NameLoad attr TupleLoad Num Num body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad NameLoad attr CompareLt NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr Str Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpBitOr BinOpBitOr BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TryFinally body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr While NameLoad body Assign TupleStore NameStore NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad NameLoad BinOpMod Str TupleLoad SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Str finalbody Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad NameLoad Slice Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Return Num decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad TryFinally body Expr Call NameLoad finalbody Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad If CompareLt AttributeLoad NameLoad attr TupleLoad Num Num body Assign AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad NameLoad body Return Num Raise NameLoad Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad NameLoad body Return Num Return NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Return Num decorator_list Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr keyword Str
N/A N/A 
TestCases for python DB duplicate and Btree key comparison function.
 N/A sys os re N/A test_all cStringIO StringIO N/A unittest test_all db dbshelve test_support get_new_environment_path get_new_database_path cmp N/A N/A a b N/A N/A N/A N/A a b N/A N/A 0 N/A N/A a b N/A N/A -1 N/A 1 N/A N/A lexical_cmp cmp lowercase_cmp N/A N/A left right N/A N/A N/A N/A cmp N/A N/A left lower N/A N/A right lower N/A make_reverse_comparator N/A N/A cmp N/A N/A reverse N/A N/A left right delegate N/A cmp N/A N/A N/A N/A delegate left right N/A N/A reverse N/A N/A _expected_lexical_test_data N/A CCCP a aaa b c cccce ccccf N/A _expected_lowercase_test_data N/A a aaa b c CC cccce ccccf CCCP ComparatorTests N/A N/A unittest TestCase N/A comparator_test_helper N/A N/A self comparator expected_data N/A N/A N/A data N/A expected_data N/A N/A sys N/A N/A N/A sys version_info N/A 2 6 N/A N/A N/A N/A data sort cmp comparator N/A N/A data2 N/A N/A i data N/A N/A N/A j k N/A enumerate data2 N/A N/A r N/A comparator k i N/A N/A r 1 N/A N/A N/A N/A data2 insert j i N/A N/A N/A N/A N/A data2 append i N/A data data2 N/A N/A N/A self assertEqual data expected_data N/A comparator `%s' is not right: %s vs. %s N/A comparator expected_data data N/A test_lexical_comparator N/A N/A self N/A N/A N/A N/A N/A self comparator_test_helper lexical_cmp _expected_lexical_test_data N/A test_reverse_lexical_comparator N/A N/A self N/A N/A N/A rev N/A _expected_lexical_test_data N/A N/A N/A N/A rev reverse N/A N/A N/A self comparator_test_helper N/A make_reverse_comparator lexical_cmp rev N/A test_lowercase_comparator N/A N/A self N/A N/A N/A N/A N/A self comparator_test_helper lowercase_cmp _expected_lowercase_test_data N/A N/A AbstractBtreeKeyCompareTestCase N/A N/A unittest TestCase N/A N/A env None N/A db None N/A N/A N/A N/A sys version_info N/A 2 7 N/A N/A N/A sys version_info N/A 3 0 N/A N/A sys version_info N/A 3 2 N/A assertLess N/A N/A self a b msg N/A None N/A N/A N/A N/A self assertTrue N/A a b msg msg N/A setUp N/A N/A self N/A N/A N/A N/A self filename N/A N/A N/A self __class__ __name__ .db N/A N/A self homeDir N/A get_new_environment_path N/A env N/A N/A db DBEnv N/A N/A N/A env open N/A self homeDir N/A N/A N/A N/A db DB_CREATE N/A db DB_INIT_MPOOL N/A db DB_INIT_LOCK N/A db DB_THREAD N/A N/A self env env N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self closeDB N/A N/A N/A self env None N/A N/A N/A N/A N/A self env close N/A N/A self env None N/A N/A N/A test_support rmtree N/A self homeDir N/A addDataToDB N/A N/A self data N/A N/A N/A i 0 N/A item data N/A N/A N/A N/A N/A self db put item N/A str i N/A i N/A i 1 N/A createDB N/A N/A self key_comparator N/A N/A N/A N/A self db N/A N/A db DB N/A self env N/A N/A N/A self setupDB key_comparator N/A N/A N/A N/A self db open N/A self filename test N/A db DB_BTREE N/A db DB_CREATE N/A setupDB N/A N/A self key_comparator N/A N/A N/A N/A N/A N/A self db set_bt_compare key_comparator N/A closeDB N/A N/A self N/A N/A N/A N/A N/A self db None N/A N/A N/A N/A N/A self db close N/A N/A self db None N/A startTest N/A N/A self N/A N/A N/A N/A finishTest N/A N/A self expected N/A None N/A N/A N/A expected None N/A N/A N/A N/A self check_results expected N/A N/A N/A self closeDB N/A check_results N/A N/A self expected N/A N/A N/A curs N/A N/A N/A self db cursor N/A N/A N/A index 0 N/A rec N/A N/A curs first N/A rec N/A N/A N/A key ignore rec N/A N/A N/A self assertLess index N/A len expected to many values returned from cursor N/A N/A N/A self assertEqual N/A expected N/A index key N/A expected value `%s' at %d but got `%s' N/A N/A expected N/A index index key N/A index N/A index 1 N/A rec N/A N/A curs next N/A N/A N/A self assertEqual index N/A len expected not enough values returned from cursor N/A N/A N/A N/A curs close N/A N/A BtreeKeyCompareTestCase N/A AbstractBtreeKeyCompareTestCase N/A runCompareTest N/A N/A self comparator data N/A N/A N/A N/A N/A self startTest N/A N/A N/A self createDB comparator N/A N/A N/A self addDataToDB data N/A N/A N/A self finishTest data N/A test_lexical_ordering N/A N/A self N/A N/A N/A N/A N/A self runCompareTest lexical_cmp _expected_lexical_test_data N/A test_reverse_lexical_ordering N/A N/A self N/A N/A N/A expected_rev_data N/A _expected_lexical_test_data N/A N/A N/A N/A expected_rev_data reverse N/A N/A N/A self runCompareTest N/A make_reverse_comparator lexical_cmp expected_rev_data N/A test_compare_function_useless N/A N/A self N/A N/A N/A N/A N/A self startTest socialist_comparator N/A N/A l r N/A N/A N/A 0 N/A N/A N/A N/A self createDB socialist_comparator N/A N/A N/A self addDataToDB N/A b a d N/A N/A N/A self finishTest N/A b N/A N/A BtreeExceptionsTestCase N/A AbstractBtreeKeyCompareTestCase N/A test_raises_non_callable N/A N/A self N/A N/A N/A N/A N/A self startTest N/A N/A N/A self assertRaises TypeError N/A self createDB abc N/A N/A N/A self assertRaises TypeError N/A self createDB None N/A N/A N/A self finishTest N/A test_set_bt_compare_with_function N/A N/A self N/A N/A N/A N/A N/A self startTest N/A N/A N/A self createDB lexical_cmp N/A N/A N/A self finishTest N/A check_results N/A N/A self results N/A N/A N/A N/A test_compare_function_incorrect N/A N/A self N/A N/A N/A N/A N/A self startTest bad_comparator N/A N/A l r N/A N/A N/A 1 N/A N/A N/A N/A self assertRaises TypeError N/A self createDB bad_comparator N/A N/A N/A self finishTest N/A verifyStderr N/A N/A self method successRe N/A N/A N/A 
        Call method() while capturing sys.stderr output internally and
        call self.fail() if successRe.search() does not match the stderr
        output.  This is used to test for uncatchable exceptions.
         N/A stdErr N/A sys stderr N/A N/A sys stderr N/A StringIO N/A N/A N/A N/A method N/A N/A temp N/A sys stderr N/A N/A sys stderr stdErr N/A errorOut N/A N/A temp getvalue N/A N/A N/A N/A successRe search errorOut N/A N/A N/A N/A self fail N/A unexpected stderr output:
 errorOut N/A N/A N/A sys version_info N/A 3 0 N/A N/A N/A sys exc_traceback N/A sys last_traceback None N/A _test_compare_function_exception N/A N/A self N/A N/A N/A N/A N/A self startTest bad_comparator N/A N/A l r N/A N/A N/A N/A l r N/A N/A 0 N/A RuntimeError i'm a naughty comparison function N/A N/A N/A N/A self createDB bad_comparator N/A N/A N/A self addDataToDB N/A a b c N/A N/A N/A self finishTest N/A test_compare_function_exception N/A N/A self N/A N/A N/A N/A N/A self verifyStderr N/A self _test_compare_function_exception N/A N/A re compile (^RuntimeError:.* naughty.*){2} N/A N/A re M N/A re S N/A _test_compare_function_bad_return N/A N/A self N/A N/A N/A N/A N/A self startTest bad_comparator N/A N/A l r N/A N/A N/A N/A l r N/A N/A 0 N/A l N/A N/A N/A N/A self createDB bad_comparator N/A N/A N/A self addDataToDB N/A a b c N/A N/A N/A self finishTest N/A test_compare_function_bad_return N/A N/A self N/A N/A N/A N/A N/A self verifyStderr N/A self _test_compare_function_bad_return N/A N/A re compile (^TypeError:.* return an int.*){2} N/A N/A re M N/A re S N/A test_cannot_assign_twice N/A N/A self N/A N/A my_compare N/A N/A a b N/A N/A N/A 0 N/A N/A N/A N/A self startTest N/A N/A N/A self createDB my_compare N/A N/A N/A self assertRaises RuntimeError N/A N/A self db set_bt_compare my_compare N/A N/A AbstractDuplicateCompareTestCase N/A N/A unittest TestCase N/A N/A env None N/A db None N/A N/A N/A N/A sys version_info N/A 2 7 N/A N/A N/A sys version_info N/A 3 0 N/A N/A sys version_info N/A 3 2 N/A assertLess N/A N/A self a b msg N/A None N/A N/A N/A N/A self assertTrue N/A a b msg msg N/A setUp N/A N/A self N/A N/A N/A N/A self filename N/A N/A N/A self __class__ __name__ .db N/A N/A self homeDir N/A get_new_environment_path N/A env N/A N/A db DBEnv N/A N/A N/A env open N/A self homeDir N/A N/A N/A N/A db DB_CREATE N/A db DB_INIT_MPOOL N/A db DB_INIT_LOCK N/A db DB_THREAD N/A N/A self env env N/A tearDown N/A N/A self N/A N/A N/A N/A N/A self closeDB N/A N/A N/A self env None N/A N/A N/A N/A N/A self env close N/A N/A self env None N/A N/A N/A test_support rmtree N/A self homeDir N/A addDataToDB N/A N/A self data N/A N/A N/A item data N/A N/A N/A N/A N/A self db put key item N/A createDB N/A N/A self dup_comparator N/A N/A N/A N/A self db N/A N/A db DB N/A self env N/A N/A N/A self setupDB dup_comparator N/A N/A N/A N/A self db open N/A self filename test N/A db DB_BTREE N/A db DB_CREATE N/A setupDB N/A N/A self dup_comparator N/A N/A N/A N/A N/A N/A self db set_flags N/A db DB_DUPSORT N/A N/A N/A N/A self db set_dup_compare dup_comparator N/A closeDB N/A N/A self N/A N/A N/A N/A N/A self db None N/A N/A N/A N/A N/A self db close N/A N/A self db None N/A startTest N/A N/A self N/A N/A N/A N/A finishTest N/A N/A self expected N/A None N/A N/A N/A expected None N/A N/A N/A N/A self check_results expected N/A N/A N/A self closeDB N/A check_results N/A N/A self expected N/A N/A N/A curs N/A N/A N/A self db cursor N/A N/A N/A index 0 N/A rec N/A N/A curs first N/A rec N/A N/A N/A ignore data rec N/A N/A N/A self assertLess index N/A len expected to many values returned from cursor N/A N/A N/A self assertEqual N/A expected N/A index data N/A expected value `%s' at %d but got `%s' N/A N/A expected N/A index index data N/A index N/A index 1 N/A rec N/A N/A curs next N/A N/A N/A self assertEqual index N/A len expected not enough values returned from cursor N/A N/A N/A N/A curs close N/A N/A DuplicateCompareTestCase N/A AbstractDuplicateCompareTestCase N/A runCompareTest N/A N/A self comparator data N/A N/A N/A N/A N/A self startTest N/A N/A N/A self createDB comparator N/A N/A N/A self addDataToDB data N/A N/A N/A self finishTest data N/A test_lexical_ordering N/A N/A self N/A N/A N/A N/A N/A self runCompareTest lexical_cmp _expected_lexical_test_data N/A test_reverse_lexical_ordering N/A N/A self N/A N/A N/A expected_rev_data N/A _expected_lexical_test_data N/A N/A N/A N/A expected_rev_data reverse N/A N/A N/A self runCompareTest N/A make_reverse_comparator lexical_cmp expected_rev_data N/A N/A DuplicateExceptionsTestCase N/A AbstractDuplicateCompareTestCase N/A test_raises_non_callable N/A N/A self N/A N/A N/A N/A N/A self startTest N/A N/A N/A self assertRaises TypeError N/A self createDB abc N/A N/A N/A self assertRaises TypeError N/A self createDB None N/A N/A N/A self finishTest N/A test_set_dup_compare_with_function N/A N/A self N/A N/A N/A N/A N/A self startTest N/A N/A N/A self createDB lexical_cmp N/A N/A N/A self finishTest N/A check_results N/A N/A self results N/A N/A N/A N/A test_compare_function_incorrect N/A N/A self N/A N/A N/A N/A N/A self startTest bad_comparator N/A N/A l r N/A N/A N/A 1 N/A N/A N/A N/A self assertRaises TypeError N/A self createDB bad_comparator N/A N/A N/A self finishTest N/A test_compare_function_useless N/A N/A self N/A N/A N/A N/A N/A self startTest socialist_comparator N/A N/A l r N/A N/A N/A 0 N/A N/A N/A N/A self createDB socialist_comparator N/A N/A N/A self assertRaises N/A db DBKeyExistError N/A self addDataToDB N/A b a d N/A N/A N/A self finishTest N/A verifyStderr N/A N/A self method successRe N/A N/A N/A 
        Call method() while capturing sys.stderr output internally and
        call self.fail() if successRe.search() does not match the stderr
        output.  This is used to test for uncatchable exceptions.
         N/A stdErr N/A sys stderr N/A N/A sys stderr N/A StringIO N/A N/A N/A N/A method N/A N/A temp N/A sys stderr N/A N/A sys stderr stdErr N/A errorOut N/A N/A temp getvalue N/A N/A N/A N/A successRe search errorOut N/A N/A N/A N/A self fail N/A unexpected stderr output:
 errorOut N/A N/A N/A sys version_info N/A 3 0 N/A N/A N/A sys exc_traceback N/A sys last_traceback None N/A _test_compare_function_exception N/A N/A self N/A N/A N/A N/A N/A self startTest bad_comparator N/A N/A l r N/A N/A N/A N/A l r N/A N/A 0 N/A RuntimeError i'm a naughty comparison function N/A N/A N/A N/A self createDB bad_comparator N/A N/A N/A self addDataToDB N/A a b c N/A N/A N/A self finishTest N/A test_compare_function_exception N/A N/A self N/A N/A N/A N/A N/A self verifyStderr N/A self _test_compare_function_exception N/A N/A re compile (^RuntimeError:.* naughty.*){2} N/A N/A re M N/A re S N/A _test_compare_function_bad_return N/A N/A self N/A N/A N/A N/A N/A self startTest bad_comparator N/A N/A l r N/A N/A N/A N/A l r N/A N/A 0 N/A l N/A N/A N/A N/A self createDB bad_comparator N/A N/A N/A self addDataToDB N/A a b c N/A N/A N/A self finishTest N/A test_compare_function_bad_return N/A N/A self N/A N/A N/A N/A N/A self verifyStderr N/A self _test_compare_function_bad_return N/A N/A re compile (^TypeError:.* return an int.*){2} N/A N/A re M N/A re S N/A test_cannot_assign_twice N/A N/A self N/A N/A my_compare N/A N/A a b N/A N/A N/A 0 N/A N/A N/A N/A self startTest N/A N/A N/A self createDB my_compare N/A N/A N/A self assertRaises RuntimeError N/A N/A self db set_dup_compare my_compare N/A N/A test_suite N/A N/A N/A N/A N/A res N/A N/A unittest TestSuite N/A N/A N/A res addTest N/A N/A unittest makeSuite ComparatorTests N/A N/A N/A res addTest N/A N/A unittest makeSuite BtreeExceptionsTestCase N/A N/A N/A res addTest N/A N/A unittest makeSuite BtreeKeyCompareTestCase N/A N/A N/A res addTest N/A N/A unittest makeSuite DuplicateExceptionsTestCase N/A N/A N/A res addTest N/A N/A unittest makeSuite DuplicateCompareTestCase N/A res N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main defaultTest suite