def test_arg_parse(self): """ Command line options """ opt = mhk.arg_parse(["foo"]) self.assertEqual(opt.infile, None) self.assertEqual(opt.port, 80)
def test_arg_parse_threads(self): """ Command line options """ opt = mhk.arg_parse(["foo","-t","870"]) self.assertEqual(opt.threads, 870)
def test_arg_parse_protocol(self): """ Command line options """ opt = mhk.arg_parse(["foo","--protocol","https"]) self.assertEqual(opt.protocol, "https")
def test_arg_parse_port(self): """ Command line options """ opt = mhk.arg_parse(["foo","-p","870"]) self.assertEqual(opt.port, "870")