def METHOD_NAME(self, _, show_branch_output, active_branch, nearest_branch):
    test = NearestBranchMixin()
    when(test, strict=False).git("show-branch", "--no-color").thenReturn(show_branch_output)
    self.assertEqual(nearest_branch, test.nearest_branch(active_branch))