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