Permalink
Browse files

Test case for bytes/unicode issue with Entrez.epost under Python 3

  • Loading branch information...
1 parent abc37f6 commit 71490524ea4b0ab69f8c6f72db01a33f8c8f39b5 @peterjc peterjc committed Mar 22, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 Tests/test_Entrez_online.py
View
6 Tests/test_Entrez_online.py
@@ -65,6 +65,12 @@ def test_medline_from_url(self):
self.assertEqual('19304878', record['PMID'])
self.assertEqual('10.1093/bioinformatics/btp163 [doi]', record['LID'])
+ def test_epost(self):
+ handle = Entrez.epost("nuccore", id="186972394,160418")
+ handle.close()
+ handle = Entrez.epost("nuccore", id=["160418", "160351"])
+ handle.close()
+
if __name__ == "__main__":
runner = unittest.TextTestRunner(verbosity = 2)

0 comments on commit 7149052

Please sign in to comment.