/Tests/test_SCOP_online.py

https://github.com/pgarland/biopython · Python · 26 lines · 10 code · 8 blank · 8 comment · 1 complexity · 8c2374e543a42e7a3db582c2f815317a MD5 · raw file

  1. # Copyright 2010 by Peter Cock. All rights reserved.
  2. # This code is part of the Biopython distribution and governed by its
  3. # license. Please see the LICENSE file that should have been included
  4. # as part of this package.
  5. """Testing online code in Bio.SCOP
  6. """
  7. import unittest
  8. import requires_internet
  9. requires_internet.check()
  10. from Bio import SCOP
  11. class ScopSearch(unittest.TestCase):
  12. """SCOP search tests."""
  13. def test_search(self):
  14. """Bio.SCOP.search(...)"""
  15. handle = SCOP.search("1JOY")
  16. if __name__ == "__main__":
  17. runner = unittest.TextTestRunner(verbosity=2)
  18. unittest.main(testRunner=runner)