Exemplo n.º 1
0
 def test_auth(self):
     """
     Tests that the --auth command generates a checker.
     """
     opt = tap.Options()
     opt.parseOptions(['--auth', 'file:' + self.file.name])
     self._loginTest(opt)
Exemplo n.º 2
0
 def test_hostname(self):
     """
     Tests that the --hostname parameter gets passed to Options.
     """
     opt = tap.Options()
     opt.parseOptions(['--hostname', 'myhost'])
     self.assertEqual(opt['hostname'], 'myhost')
Exemplo n.º 3
0
 def test_passwd(self):
     """
     Tests the --passwd command for backwards-compatibility.
     """
     opt = tap.Options()
     opt.parseOptions(['--passwd', self.file.name])
     self._loginTest(opt)
Exemplo n.º 4
0
 def test_hostname(self):
     """
     Tests that the --hostname parameter gets passed to Options.
     """
     opt = tap.Options()
     opt.parseOptions(["--hostname", "myhost"])
     self.assertEqual(opt["hostname"], "myhost")