def youtube_artifacts_to_meme(self): download_res = utils.download_frame_from_s3( settings.AWS_STORAGE_BUCKET_NAME, self.frame_s3_obj_name, self.frame_local_filename) meme_res = utils.meme_comment_to_frame(self.meme_local_filename, self.frame_local_filename, self.comment) upload_res = utils.upload_meme_to_s3(settings.AWS_STORAGE_BUCKET_NAME, self.meme_local_filename, self.meme_s3_obj_name) return download_res and meme_res and upload_res
def test_meme_with_comment_on_bottom(self): result = utils.meme_comment_to_frame( 'test', self._data['images'][0], self._data['comment'], bottom=True) self.assertTrue(result)
def test_meme_with_extra_long_comment_on_bottom(self): result = utils.meme_comment_to_frame( 'test', self._data['images'][2], self._data['extraLongComment'], bottom=True) self.assertTrue(result)
def test_meme_with_long_comment_on_top(self): result = utils.meme_comment_to_frame( 'test', self._data['images'][1], self._data['longComment']) self.assertTrue(result)