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..437.00 rows=1 width=4)"],
        ["   ->  Nested Loop  (cost=0.00..437.00 rows=1 width=4)"],
        ["         Join Filter: true"],
        ["         ->  Broadcast Motion 3:3  (slice2; segments: 3)  (cost=0.00..431.00 rows=1 width=4)"],
        ["               ->  Seq Scan on cal_txtest  (cost=0.00..431.00 rows=1 width=4)"],
        ["         ->  Index Only Scan using cal_txtest_a_idx on cal_txtest cal_txtest_1  (cost=0.00..6.00 rows=1 width=1)"],
        ["               Index Cond: (a = cal_txtest.a)"]
    ]
    (scan, cost) = explain_join_scan(Mock(), "mock sql query string")
    self.assertEqual(scan, cal_bitmap_test.INDEX_ONLY_SCAN)
    self.assertEqual(cost, 437.00)