From faf6829a09cde3319c802ec3c0bda75855cb7cda Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Wed, 11 May 2016 04:08:55 +0000 Subject: Add test for `RoomTBA`. Addresses issue #4. --- tests/test_lps_gen.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'tests/test_lps_gen.py') diff --git a/tests/test_lps_gen.py b/tests/test_lps_gen.py index 254f384..0a8efff 100644 --- a/tests/test_lps_gen.py +++ b/tests/test_lps_gen.py @@ -572,6 +572,23 @@ class TestLPSTBA(object): assert_equal(sp_block, speakers.pop(0)) + def test_LP_room(self): + """Tests the non-existence of `RoomTBA` in gen. HTML. + + """ + rooms = [ + 'Room 32-141', + 'Room 32-144', + 'Room 31-123', + 'Room 32-144', + 'Room 42-042', + ] + + for sp in self.soup.find_all(class_='room'): + room_block = sp.string + assert_equal(room_block, rooms.pop(0)) + + def teardown(self): """Cleans up things after each test in this class. -- cgit v1.2.3