示例#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)
示例#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')
示例#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)
 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")