summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <rsd@gnu.org>2017-10-25 01:47:18 +0000
committerrsiddharth <rsd@gnu.org>2017-10-25 01:47:18 +0000
commit2813c2d2079ebd837ae150420c4e9861737a8716 (patch)
treeb3638166198cbf5fe1fb292507c5a6125840947c
parent93c562a247a0b898d91c14769d8584de516ecafe (diff)
tests: Add TestLPS.test_LPSMarkdown_desc.
* tests/test_lps_gen.py (TestLPS.test_LPSMarkdown_desc): New test.
-rw-r--r--tests/test_lps_gen.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/test_lps_gen.py b/tests/test_lps_gen.py
index bf83b30..4ac2730 100644
--- 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
"""