tests: Fix failing test

This commit is contained in:
Dylan Araps
2017-07-23 22:06:12 +10:00
parent 2e39be9627
commit aa6b151631
2 changed files with 4 additions and 3 deletions

View File

@ -28,8 +28,8 @@ class Testsequences(unittest.TestCase):
"""> Send sequences to all open terminals."""
with unittest.mock.patch('sys.stdout', new=io.StringIO()) as fake_out:
sequences.send(COLORS, False)
self.assertEqual(fake_out.getvalue().strip(),
"colors: Set terminal colors")
data = fake_out.getvalue().strip()
self.assertTrue(data.endswith("colors: Set terminal colors"))
if __name__ == "__main__":