/Tests/test_SCOP_online.py

https://github.com/biopython/biopython · Python · 27 lines · 10 code · 10 blank · 7 comment · 1 complexity · 78c6fae03c1d819028c6a5b2f831592d 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 module."""
  6. import unittest
  7. from Bio import SCOP
  8. import requires_internet
  9. requires_internet.check()
  10. class ScopSearch(unittest.TestCase):
  11. """SCOP search tests."""
  12. def test_search(self):
  13. """Test search."""
  14. handle = SCOP.search("1JOY")
  15. if __name__ == "__main__":
  16. runner = unittest.TextTestRunner(verbosity=2)
  17. unittest.main(testRunner=runner)