Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Num Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Str attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Num Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Num With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Num Assign AttributeStore SubscriptLoad NameLoad Index Str attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad NameLoad Index Str attr Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Tests for tests.mock_flags. N/A copy N/A unittest perfkitbenchmarker flags tests mock_flags N/A FLAGS N/A flags FLAGS N/A N/A N/A flags DEFINE_integer test_flag 0 Test flag. MockFlagsTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super MockFlagsTestCase self setUp N/A N/A self flags N/A N/A mock_flags MockFlags N/A testGetUnsetFlag N/A N/A self N/A N/A N/A flag N/A N/A self flags N/A test_flag N/A N/A N/A self assertFalse N/A flag present N/A N/A N/A self assertIsNone N/A flag value N/A testSetViaAttribute N/A N/A self N/A N/A N/A N/A N/A self flags test_flag 5 N/A N/A N/A self assertEqual N/A N/A self flags test_flag 5 N/A N/A N/A self assertFalse N/A N/A N/A self flags N/A test_flag present N/A N/A N/A self assertEqual N/A N/A N/A self flags N/A test_flag value 5 N/A testSetViaItemAttribute N/A N/A self N/A N/A N/A N/A N/A N/A self flags N/A test_flag value 5 N/A N/A N/A self assertFalse N/A N/A N/A self flags N/A test_flag present N/A N/A N/A self assertEqual N/A N/A N/A self flags N/A test_flag value 5 N/A N/A N/A N/A self flags N/A test_flag present True N/A N/A N/A self assertTrue N/A N/A N/A self flags N/A test_flag present N/A N/A N/A self assertEqual N/A N/A N/A self flags N/A test_flag value 5 N/A testSetViaParse N/A N/A self N/A N/A N/A N/A N/A N/A N/A self flags N/A test_flag Parse 5 N/A N/A N/A self assertTrue N/A N/A N/A self flags N/A test_flag present N/A N/A N/A self assertEqual N/A N/A N/A self flags N/A test_flag value 5 N/A testCopy N/A N/A self N/A N/A N/A copied_flags N/A N/A copy deepcopy N/A self flags N/A N/A N/A N/A copied_flags N/A test_flag Parse 5 N/A N/A N/A self assertFalse N/A N/A N/A self flags N/A test_flag present N/A N/A N/A self assertIsNone N/A N/A N/A self flags N/A test_flag value N/A N/A N/A self assertTrue N/A N/A copied_flags N/A test_flag present N/A N/A N/A self assertEqual N/A N/A copied_flags N/A test_flag value 5 N/A N/A PatchFlagsTestCase N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super PatchFlagsTestCase self setUp N/A N/A self flags N/A N/A mock_flags MockFlags N/A testGetFlag N/A N/A self N/A N/A N/A N/A N/A N/A N/A self flags N/A test_flag Parse 5 N/A N/A N/A mock_flags PatchFlags N/A self flags N/A N/A N/A N/A self assertEqual N/A FLAGS test_flag 5 N/A N/A N/A self assertTrue N/A N/A FLAGS N/A test_flag present N/A N/A N/A self assertEqual N/A N/A FLAGS N/A test_flag value 5 N/A N/A N/A self assertEqual N/A FLAGS test_flag 0 N/A N/A N/A self assertFalse N/A N/A FLAGS N/A test_flag present N/A N/A N/A self assertEqual N/A N/A FLAGS N/A test_flag value 0 N/A testSetFlag N/A N/A self N/A N/A N/A N/A N/A mock_flags PatchFlags N/A self flags N/A N/A N/A FLAGS test_flag 5 N/A N/A N/A self assertEqual N/A FLAGS test_flag 5 N/A N/A N/A self assertFalse N/A N/A FLAGS N/A test_flag present N/A N/A N/A self assertEqual N/A N/A FLAGS N/A test_flag value 5 N/A N/A N/A FLAGS N/A test_flag present True N/A N/A N/A self assertTrue N/A N/A FLAGS N/A test_flag present N/A N/A N/A self assertEqual N/A N/A FLAGS N/A test_flag value 5 N/A N/A N/A self assertEqual N/A N/A self flags test_flag 5 N/A N/A N/A self assertTrue N/A N/A N/A self flags N/A test_flag present N/A N/A N/A self assertEqual N/A N/A N/A self flags N/A test_flag value 5 N/A N/A N/A self assertEqual N/A FLAGS test_flag 0 N/A N/A N/A self assertFalse N/A N/A FLAGS N/A test_flag present N/A N/A N/A self assertEqual N/A N/A FLAGS N/A test_flag value 0 N/A testCopyPatchedFlags N/A N/A self N/A N/A N/A N/A N/A mock_flags PatchFlags N/A self flags N/A N/A N/A FLAGS test_flag 1 N/A copied_flags N/A N/A copy deepcopy FLAGS N/A N/A copied_flags test_flag 2 N/A N/A N/A self assertEqual N/A FLAGS test_flag 1 N/A N/A N/A self assertEqual N/A N/A self flags test_flag 1 N/A N/A N/A self assertEqual N/A copied_flags test_flag 2 N/A N/A N/A self assertEqual N/A FLAGS test_flag 0 N/A N/A N/A self assertEqual N/A N/A self flags test_flag 1 N/A N/A N/A self assertEqual N/A copied_flags test_flag 2 N/A N/A PatchTestCaseFlagsTestCase N/A N/A unittest TestCase N/A testGetFlag N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A FLAGS test_flag 0 N/A flags N/A N/A mock_flags PatchTestCaseFlags self N/A N/A flags test_flag 5 N/A N/A N/A self assertEqual N/A FLAGS test_flag 5 N/A testSetFlag N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A FLAGS test_flag 0 N/A flags N/A N/A mock_flags PatchTestCaseFlags self N/A N/A FLAGS test_flag 5 N/A N/A N/A self assertEqual N/A flags test_flag 5 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main