def test_adjustment_puts_current_project_then_inactives_in_alphabetical(self):
    in_res = QueryResult(hits=[("/c/render_widget.cpp", 10),
                               ("/b/render_widget.cpp", 10),
                               ("/a/render_widget.cpp", 10)])
    # A is current, so it should go top, then b c
    res = query._apply_global_rank_adjustment(in_res,
                                              ["/a/", "/b/", "/c/"],
                                              Query("rw", current_filename="/a/foobar.cpp"))
    rA = res.rank_of("/a/render_widget.cpp")
    rB = res.rank_of("/b/render_widget.cpp")
    rC = res.rank_of("/c/render_widget.cpp")
    self.assertTrue(rA > rB, "Expected %s > %s" % (rA, rB))
    self.assertTrue(rB > rC, "Expected %s > %s" % (rB, rC))
    self.assertTrue(rA > rC, "Expected %s > %s" % (rA, rC))
dataset/ETHPy150Open natduca/quickopen/src/query_test.py/QueryTest.test_adjustment_puts_current_project_then_inactives_in_alphabetical/original