lpschedule-generator

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

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

tests: Add TestLPS.test_LPSMarkdown_desc.

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

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

diff --git a/tests/test_lps_gen.py b/tests/test_lps_gen.py @@ -500,6 +500,34 @@ class TestLPS(object): i = i + 1 + def test_LPSMarkdown_desc(self): + """Testing `LPSMarkdown` class - Video + """ + descriptions = [ + 'Preceded by a welcome address from', + 'The effort to re-decentralize the web has', + 'What if the classic horror trope of the', + 'TAFTA, CETA, and TISA are far-reaching', + 'This year a robotic certificate authority will', + 'Reusing works licensed under free licenses seems', + 'In order to relate effectively to the digital works', + 'The free software movement has twin', + 'Typically, GPL enforcement activity', + 'While traditional enforcement is often', + 'Recently, Software Freedom Conservancy', + 'This talk discusses which scenarios make this remedy', + 'What\'s going on in here? Computer parts', + ] + + i = 0 + for lps_timeslots in self.lps_dict.values(): + for lps_sessions in lps_timeslots.values(): + for session_info in lps_sessions.values(): + for desc in session_info['desc']: + assert_true(desc.startswith(descriptions[i])) + i = i + 1 + + def test_RenderHTML(self): """Testing `RenderHTML` function with LP schedule """