diff options
author | rsiddharth <rsd@gnu.org> | 2016-05-11 04:08:55 +0000 |
---|---|---|
committer | rsiddharth <rsd@gnu.org> | 2016-05-11 04:08:55 +0000 |
commit | faf6829a09cde3319c802ec3c0bda75855cb7cda (patch) | |
tree | 597e4a2fb3e951be09350d597a7a0bd6b5979d0f /tests | |
parent | f896e22ac564b84c0e5307c2dd461e82b3dd24f1 (diff) |
Add test for `RoomTBA`.
Addresses issue #4.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_lps_gen.py | 17 |
1 files changed, 17 insertions, 0 deletions
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. |