/Tests/test_SCOP_online.py

https://github.com/ntamas/biopython · Python · 25 lines · 10 code · 7 blank · 8 comment · 1 complexity · 064f09ac59f317aeec1135b52c045742 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)