def METHOD_NAME(self, mock_query):
    mock_query.return_value = Mock()
    mock_query.return_value.fetchall.return_value = [
        [" Gather Motion 3:1  (slice1; segments: 3)  (cost=0.00..8.04 rows=1 width=4)"],
        ["   ->  Index Scan using cal_txtest_i_bitmap_10 on cal_txtest  (cost=0.00..8.02 rows=1 width=4)"],
        ["         Index Cond: (bitmap10 > 42)"]
    ]
    (scan, cost) = explain_index_scan(Mock(), "mock sql query string")
    self.assertEqual(scan, cal_bitmap_test.INDEX_SCAN)
    self.assertEqual(cost, 8.02)