[tor-commits] [bridgedb/develop] Fix unittests for bridge lines to search for <div class='bridges'>.

isis at torproject.org isis at torproject.org
Sat Apr 19 16:39:44 UTC 2014


commit 4ea93b1b21f79ee3e125b4dca74426a1ea1ddaa5
Author: Isis Lovecruft <isis at torproject.org>
Date:   Sat Apr 19 04:34:35 2014 +0000

    Fix unittests for bridge lines to search for <div class='bridges'>.
---
 lib/bridgedb/test/test_HTTPServer.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bridgedb/test/test_HTTPServer.py b/lib/bridgedb/test/test_HTTPServer.py
index 52c2fb7..0de233d 100644
--- a/lib/bridgedb/test/test_HTTPServer.py
+++ b/lib/bridgedb/test/test_HTTPServer.py
@@ -535,9 +535,9 @@ class WebResourceBridgesTests(unittest.TestCase):
         :rtype: list
         :returns: A list of the bridge lines contained on the **page**.
         """
-        # The bridge lines are contained in a <div class='well well-lg'> tag:
+        # The bridge lines are contained in a <div class='bridges'> tag:
         soup = BeautifulSoup(page)
-        well = soup.find('div', {'class': 'well well-lg'}).find('p')
+        well = soup.find('div', {'class': 'bridge-lines'})
         content = well.renderContents().strip()
         bridges = [b.strip() for b in content.splitlines()]
         return bridges





More information about the tor-commits mailing list