def test_info_pathway(self): with kegg_info("pathway") as handle: handle.read() self.assertEqual(handle.url, "http://rest.kegg.jp/info/pathway")
def test_info_pathway(self): h = kegg_info("pathway") h.read() self.assertEqual(h.url, "http://rest.kegg.jp/info/pathway") h.close()
def test_info_kegg(self): with kegg_info("kegg") as handle: handle.read() self.assertEqual(handle.url, "http://rest.kegg.jp/info/kegg")
def test_info_kegg(self): h = kegg_info("kegg") h.read() self.assertEqual(h.url, "http://rest.kegg.jp/info/kegg") h.close()