def test_script():
    """ Tests a call to script barbante.api.generate_user_templates.
    """
    result = script.main([tests.TEST_ENV])
    log.debug(result)
    result_json = json.dumps(result)
    nose.tools.ok_(result_json)  # a well-formed json is enough
def test_script():
    """ Tests a call to script barbante.api.batch_recommend.
    """
    result = script.main([tests.TEST_ENV, 10, "HRChunks"])
    log.debug(result)
    result_json = json.dumps(result)
    nose.tools.ok_(result_json)  # a well-formed json is enough