'If I{--esmtp} is given without I{--hostname}, L{Options.parseOptions}
raises L{UsageError}.'

def test_esmtpWithoutHostname(self):

    options = Options()
    exc = self.assertRaises(UsageError, options.parseOptions, ['--esmtp'])
    self.assertEqual('--esmtp    requires    --hostname', str(exc))
