From dfbe317a7cc52b691723698b4464b260996ab425 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Fri, 26 Oct 2018 11:40:15 -0400 Subject: Refactored filtering in path_complete to use a function --- cmd2/transcript.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd2/transcript.py') diff --git a/cmd2/transcript.py b/cmd2/transcript.py index baaa6caf..fe43188f 100644 --- a/cmd2/transcript.py +++ b/cmd2/transcript.py @@ -89,7 +89,7 @@ class Cmd2TestCase(unittest.TestCase): if utils.strip_ansi(line).startswith(self.cmdapp.visible_prompt): message = '\nFile {}, line {}\nCommand was:\n{}\nExpected: (nothing)\nGot:\n{}\n'.format( fname, line_num, command, result) - self.assert_(not (result.strip()), message) + self.assertTrue(not (result.strip()), message) continue expected = [] while not utils.strip_ansi(line).startswith(self.cmdapp.visible_prompt): -- cgit v1.2.1