def test_script():
    """ Tests a call to script barbante.api.get_user_templates.
    """
    result = script.main([tests.TEST_ENV, "xxx", 10])  # non-existing user (on purpose)
    log.debug(result)
    result_json = json.dumps(result)
    nose.tools.ok_(result_json)  # a well-formed json is enough
Exemple #2
0
 def do_get(self, *args):
     return user_templates.main(args)