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
def do_get(self, *args): return user_templates.main(args)