From d8484775964269788e4bfcf36a5c56b477e7db00 Mon Sep 17 00:00:00 2001 From: Anton Stupak Date: Mon, 19 Aug 2013 09:10:39 +0300 Subject: [PATCH] Remove unecessary assert. --- lms/djangoapps/courseware/features/video.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lms/djangoapps/courseware/features/video.py b/lms/djangoapps/courseware/features/video.py index b546669803..3c51c061e3 100644 --- a/lms/djangoapps/courseware/features/video.py +++ b/lms/djangoapps/courseware/features/video.py @@ -61,10 +61,8 @@ def video_is_rendered(_step, mode): 'html5': 'video', 'youtube': 'iframe' } - if mode.lower() in modes: - assert world.css_find('.video {0}'.format(modes[mode.lower()])).first - else: - assert False + html_tag = modes[mode.lower()] + assert world.css_find('.video {0}'.format(html_tag)).first @step('all sources are correct') def all_sources_are_correct(_step):