Package lxml :: Package html :: Package tests :: Module test_elementsoup
[hide private]
[frames] | no frames]

Source Code for Module lxml.html.tests.test_elementsoup

 1  import unittest, sys 
 2  from lxml.tests.common_imports import doctest 
 3   
 4  try: 
 5      import BeautifulSoup 
 6      BS_INSTALLED = True 
 7  except ImportError: 
 8      BS_INSTALLED = False 
 9   
10   
11 -def test_suite():
12 suite = unittest.TestSuite() 13 if sys.version_info >= (2,4): 14 if BS_INSTALLED: 15 suite.addTests([doctest.DocFileSuite('../../../../doc/elementsoup.txt')]) 16 return suite
17 18 if __name__ == '__main__': 19 unittest.main() 20