def create(config, args):
    pp = pprint.PrettyPrinter()
    url = config['url'] + "/api/testplan/"

    data = {
       "name": args['name'],
        "description": args['description'],
    }

    token = auth.get_token(config)
    r = requests.post(url, data=json.dumps(data), headers={"X-Auth-Token": token})
    if r.status_code != 200:
        print("API returned status code %s" % (r.status_code))
        sys.exit(1)
    else:
        pp.pprint(json.loads(r.content))
dataset/ETHPy150Open emccode/heliosburn/heliosburn/hbcli/controllers/testplan.py/create/original