def test_convert_media(self): try: result = convert_media() except: from lib.utils import print_err print_err() print "convert " print result self.assertTrue(result) update_task_data_media() result = find_one("TaskData", {"_id": self.task_id}) self.assertTrue(result.get("converd", False)) self.assertTrue(result.get("entryList")[0].get("converdid", False))
def test_convert_media(self): try: result = convert_media() except: from lib.utils import print_err print_err() print "convert " print result self.assertTrue(result) update_task_data_media() result = find_one("TaskData", { "_id": self.task_id } ) self.assertTrue(result.get("converd", False)) self.assertTrue(result.get("entryList")[0].get("converdid", False))
def convert_task(): convert_media()