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
     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 BS_INSTALLED:
    14          suite.addTests([doctest.DocFileSuite('../../../../doc/elementsoup.txt')])
    15      return suite
    16
    17  if __name__ == '__main__':
    18      unittest.main()
    19