def test_script(): """ Tests a call to script barbante.api.consolidate_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 do_post(self, *args): env = self.get_argument("env") return consolidate_user_templates.main([env])