def test_find_genes_shiga_list_toxin(self): with kegg_find("genes", ["shiga", "toxin"]) as handle: handle.read() self.assertEqual(handle.url, "http://rest.kegg.jp/find/genes/shiga+toxin")
def test_find_compound_exact_mass(self): with kegg_find("compound", "174.05", "exact_mass") as handle: handle.read() self.assertEqual( handle.url, "http://rest.kegg.jp/find/compound/174.05/exact_mass")
def test_find_compound_weight(self): with kegg_find("compound", "300-310", "mol_weight") as handle: handle.read() self.assertEqual( handle.url, "http://rest.kegg.jp/find/compound/300-310/mol_weight")
def test_find_compound_C7H10O5_formula(self): with kegg_find("compound", "C7H10O5", "formula") as handle: handle.read() self.assertEqual(handle.url, "http://rest.kegg.jp/find/compound/C7H10O5/formula")
def test_find_compound_O5C7_formula(self): with kegg_find("compound", "O5C7", "formula") as handle: handle.read() self.assertEqual(handle.url, "http://rest.kegg.jp/find/compound/O5C7/formula")
def test_find_compound_weight(self): h = kegg_find("compound", "300-310", "mol_weight") h.read() self.assertEqual( h.url, "http://rest.kegg.jp/find/compound/300-310/mol_weight") h.close()
def test_find_compound_exact_mass(self): h = kegg_find("compound", "174.05", "exact_mass") h.read() self.assertEqual( h.url, "http://rest.kegg.jp/find/compound/174.05/exact_mass") h.close()
def test_find_compound_O5C7_formula(self): h = kegg_find("compound", "O5C7", "formula") h.read() self.assertEqual(h.url, "http://rest.kegg.jp/find/compound/O5C7/formula") h.close()
def test_find_compound_C7H10O5_formula(self): h = kegg_find("compound", "C7H10O5", "formula") h.read() self.assertEqual(h.url, "http://rest.kegg.jp/find/compound/C7H10O5/formula") h.close()
def test_find_genes_shiga_list_toxin(self): h = kegg_find("genes", ["shiga", "toxin"]) h.read() self.assertEqual(h.url, "http://rest.kegg.jp/find/genes/shiga+toxin") h.close()