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)
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')
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")