Example #1
0
 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")
Example #2
0
 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")
Example #3
0
 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")
Example #4
0
 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")
Example #5
0
 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")
Example #6
0
 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()
Example #7
0
 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()
Example #8
0
 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()
Example #9
0
 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()
Example #10
0
 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()