45
45
class BranchStatus(TestCaseWithTransport):
47
47
def assertStatus(self, expected_lines, working_tree,
48
48
revision=None, short=False, pending=True, verbose=False):
49
49
"""Run status in working_tree and look for output.
51
51
:param expected_lines: The lines to look for.
52
52
:param working_tree: The tree to run status in.
54
54
output_string = self.status_string(working_tree, revision, short,
56
56
self.assertEqual(expected_lines, output_string.splitlines(True))
58
58
def status_string(self, wt, revision=None, short=False, pending=True,
60
60
# use a real file rather than StringIO because it doesn't handle