Exemplo n.º 1
0
 def test_help_is_printed_when_no_arguments_are_provided(self):
     # If the user does not provide the path to a log file to replay, the
     # help is printed.
     with TemporaryStdout() as stdout:
         main(['websocketreplay'])
     self.assertEqual(stdout.output.strip(), HELP)
Exemplo n.º 2
0
 def test_help_is_printed_when_no_arguments_are_provided(self):
     # If the user does not provide the path to a log file to replay, the
     # help is printed.
     with TemporaryStdout() as stdout:
         main(['websocketreplay'])
     self.assertEqual(stdout.output.strip(), HELP)
Exemplo n.º 3
0
 def test_help_is_printed_when_requested_more_succinctly(self):
     # If the user passes -h anywhere in the arguments, the help is
     # printed.
     with TemporaryStdout() as stdout:
         main(['websocketreplay', '-h'])
     self.assertEqual(stdout.output.strip(), HELP)
Exemplo n.º 4
0
 def test_help_is_printed_when_requested_more_succinctly(self):
     # If the user passes -h anywhere in the arguments, the help is
     # printed.
     with TemporaryStdout() as stdout:
         main(['websocketreplay', '-h'])
     self.assertEqual(stdout.output.strip(), HELP)