@@ -75,7 +75,7 @@ def test_inspector_constructor(self):
75
75
# Because we mocked parse_etrecord() to return None, this method shouldn't be called
76
76
mock_gen_graphs_from_etrecord .assert_not_called ()
77
77
78
- def test_inspector_get_event_blocks_and_print_data_tabular (self ):
78
+ def test_inspector_print_data_tabular (self ):
79
79
# Create a context manager to patch functions called by Inspector.__init__
80
80
with patch .object (inspector , "parse_etrecord" , return_value = None ), patch .object (
81
81
inspector , "gen_etdump_object" , return_value = None
@@ -88,14 +88,11 @@ def test_inspector_get_event_blocks_and_print_data_tabular(self):
88
88
etrecord_path = ETRECORD_PATH ,
89
89
)
90
90
91
- # Test get_event_blocks() method. The mock inspector instance should start with having an empty event blocks list
92
- event_block_list = [
91
+ # The mock inspector instance starts with having an empty event blocks list.
92
+ # Add non-empty event blocks to test print_data_tabular().
93
+ inspector_instance .event_blocks = [
93
94
EventBlock (name = EVENT_BLOCK_NAME , events = self ._gen_random_events ())
94
95
]
95
- # Add non-empty event blocks to test get_event_blocks() and print_data_tabular()
96
- inspector_instance .event_blocks = event_block_list
97
- self .assertEqual (inspector_instance .get_event_blocks (), event_block_list )
98
-
99
96
# Call print_data_tabular(), make sure it doesn't crash
100
97
with redirect_stdout (None ):
101
98
inspector_instance .print_data_tabular ()
0 commit comments