Пример #1
0
 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))
Пример #2
0
 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))
Пример #3
0
def convert_task():
    convert_media()