/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to mandos-ctl

  • Committer: Teddy Hogeborn
  • Date: 2019-03-12 20:27:39 UTC
  • mto: This revision was merged to the branch mainline in revision 382.
  • Revision ID: teddy@recompile.se-20190312202739-sa7fhlxuqg1soimk
mandos-ctl: Refactor

* mandos-ctl (TestPrintTableCmd.test_one_client): Change format of
  "expected_output" definition to match other tests, for consistency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1485
1485
        self.assertEqual(output, expected_output)
1486
1486
    def test_one_client(self):
1487
1487
        output = PrintTableCmd().output(self.one_client.values())
1488
 
        expected_output = """
1489
 
Name Enabled Timeout  Last Successful Check
1490
 
foo  Yes     00:05:00 2019-02-03T00:00:00  
1491
 
"""[1:-1]
 
1488
        expected_output = "\n".join((
 
1489
            "Name Enabled Timeout  Last Successful Check",
 
1490
            "foo  Yes     00:05:00 2019-02-03T00:00:00  ",
 
1491
        ))
1492
1492
        self.assertEqual(output, expected_output)
1493
1493
 
1494
1494