@@ -0,0 +1,1996 @@
+from api.search import available%0A%0A%0Adef test_available_term_by_category_invalid():%0A    assert available.available_term_by_category('foo', 'bar') == %5B%5D%0A%0A%0Adef test_available_term_by_category_taxonomy():%0A    tests = %5B%0A        (('superkingdom', 'b'), %5B%7B'val': 'Bacteria', 'desc': None%7D%5D),%0A        (('phylum', 'f'), %5B%7B'val': 'Firmicutes', 'desc': None%7D%5D),%0A        (('class', 'b'), %5B%7B'val': 'Bacilli', 'desc': None%7D%5D),%0A        (('order', 'l'), %5B%7B'val': 'Lactobacillales', 'desc': None%7D%5D),%0A        (('family', 's'), %5B%7B'val': 'Streptococcaceae', 'desc': None%7D, %7B'val': 'Streptomycetaceae', 'desc': None%7D%5D),%0A        (('genus', 'l'), %5B%7B'val': 'Lactococcus', 'desc': None%7D%5D),%0A        (('species', 'l'), %5B%7B'val': 'lactis', 'desc': None%7D%5D),%0A        (('strain', 'c'), %5B%7B'val': 'CV56', 'desc': None%7D%5D),%0A    %5D%0A%0A    for args, expected in tests:%0A        assert available.available_term_by_category(*args) == expected%0A%0A%0Adef test_available_term_by_category():%0A    tests = %5B%0A        (('acc', 'nc_01'), %5B%7B'val': 'NC_017486', 'desc': None%7D%5D),%0A        (('compoundseq', 'a'), %5B%7B'val': 'ASFGEGTFTSPSSYAIGTRCPICC', 'desc': None%7D%5D),%0A        (('compoundclass', 'c'), %5B%7B'val': 'Class-I', 'desc': None%7D, %7B'val': 'Class-III', 'desc': None%7D%5D),%0A        (('monomer', 'ala'), %5B%7B'val': 'ala', 'desc': 'Alanine'%7D%5D),%0A        (('type', 'lanti'), %5B%7B'val': 'lantipeptide', 'desc': 'Lanthipeptide'%7D%5D),%0A        (('profile', 'fabf'), %5B%7B'val': 'FabF', 'desc': 'FabF'%7D%5D),%0A        (('asdomain', 'PKS_DH2'), %5B%7B'val': 'PKS_DH2', 'desc': 'Dehydrogenase-2 domain'%7D%5D),%0A        (('clusterblast', 'HM219853'), %5B%7B'val': 'HM219853_c1', 'desc': 'Lactococcus lactis subsp. lactis nisin biosynthetic gene clust...'%7D%5D),%0A        (('knowncluster', 'kirro'), %5B%7B'val': 'BGC0001070_c1', 'desc': 'Kirromycin biosynthetic gene cluster'%7D%5D),%0A        (('subcluster', 'novobiocin'), %5B%7B'val': 'AF170880_2_c2', 'desc': 'novobiocin noviose deoxysugar'%7D%5D),%0A    %5D%0A    for args, expected in tests:%0A        assert available.available_term_by_category(*args) == expected, args%0A

Add tests for 'available' module