Exemplo n.º 1
0
 def test_set_options_ssl_cert_no_key(self, exit_mock):
     set_options()
     self.assertTrue(exit_mock.called)
Exemplo n.º 2
0
 def test_set_options_delay(self, stdout_mock):
     val = """WARNING: Using the delay flag!\n"""\
           """The delay flag is a blocking action """\
           """and will cause connections to block.\n\n"""
     set_options()
     self.assertEquals(stdout_mock.getvalue(), val)
Exemplo n.º 3
0
 def test_set_options(self):
     set_options()
     self.assertEquals(True, True)
Exemplo n.º 4
0
 def test_set_options_ssl_cert_and_key(self, exit_mock):
     set_options()
     self.assertFalse(exit_mock.called)
Exemplo n.º 5
0
 def test_set_options_debug(self, stdout_mock):
     val = """WARNING: Using the debug flag!\nThis will generate a lots"""\
           """ of disk I/O and large log files\n\n"""
     set_options()
     self.assertEquals(stdout_mock.getvalue(), val)
Exemplo n.º 6
0
 def test_set_options_ssl_no_cert_no_key(self, exit_mock):
     set_options()
     self.assertTrue(exit_mock.called)
Exemplo n.º 7
0
 def test_set_options(self):
     set_options()
     self.assertEquals(True, True)
Exemplo n.º 8
0
 def test_set_options_delay(self, stdout_mock):
     val = """WARNING: Using the delay flag!\n"""\
           """The delay flag is a blocking action """\
           """and will cause connections to block.\n\n"""
     set_options()
     self.assertEquals(stdout_mock.getvalue(), val)
Exemplo n.º 9
0
 def test_set_options_debug(self, stdout_mock):
     val = """WARNING: Using the debug flag!\nThis will generate a lots"""\
           """ of disk I/O and large log files\n\n"""
     set_options()
     self.assertEquals(stdout_mock.getvalue(), val)
Exemplo n.º 10
0
 def test_set_options_ssl_cert_and_key(self, exit_mock):
     set_options()
     self.assertFalse(exit_mock.called)