lpschedule-generator

libreplanet schedule generator - ricketyspace.net/lpschedule-generator
git clone git://git.ricketyspace.net/lpschedule-generator.git
Log | Files | Refs

commit 93c562a247a0b898d91c14769d8584de516ecafe
parent 156323dbefc351723b33d816ab19f66b8f95a533
Author: rsiddharth <rsd@gnu.org>
Date:   Wed, 25 Oct 2017 01:46:18 +0000

tests: Add TestLPS.test_LPSMarkdown_video.

* tests/test_lps_gen.py (TestLPS.test_LPSMarkdown_video): New test.

Diffstat:
tests/test_lps_gen.py | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/tests/test_lps_gen.py b/tests/test_lps_gen.py @@ -476,6 +476,30 @@ class TestLPS(object): i = i + 1 + def test_LPSMarkdown_video(self): + """Testing `LPSMarkdown` class - Video + """ + + videos = [ + 'https://media.libre.planet/rms-free-everything', + 'https://media.libre.planet/gnu-fed', + 'VideoTBA', + 'https://media.libre.planet/tafta-ceta-tisa', + 'https://media.libre.planet/letsencrypt', + 'VideoTBA', + 'https://media.libre.planet/mako-keynote', + 'https://media.libre.planet/fork-ignore', + 'VideoTBA', + ] + + i = 0 + for lps_timeslots in self.lps_dict.values(): + for lps_sessions in lps_timeslots.values(): + for session_info in lps_sessions.values(): + assert_equal(session_info['video'], videos[i]) + i = i + 1 + + def test_RenderHTML(self): """Testing `RenderHTML` function with LP schedule """