#is_json_GET("/lookup/id/$basic_id?expand=1;format=condensed", $expanded_response, 'Get of a known ID with expanded option will return transcripts as well');
#is_json_GET("/taxonomy/classification/homo sapiens", $expected, 'Check taxonomy endpoint with valid data');
$expected={scientific_name=>"Homo sapiens",
name=>"Homo sapiens",
id=>"9606",
tags=>{"ensembl alias name"=>["Human"],"scientific name"=>["Homo sapiens"],"genbank common name"=>["human"],"common name"=>["man"],"name"=>["Homo sapiens"],"authority"=>["Homo sapiens Linnaeus, 1758"]},
leaf=>1
};
# Leaf => 1 is only true in test data.
$expected=qq({"scientific_name":"Homo sapiens","name":"Homo sapiens","id":"9606","tags":{"ensembl alias name":["Human"],"scientific name":["Homo sapiens"],"genbank common name":["human"],"common name":["man"],"name":["Homo sapiens"],"authority":["Homo sapiens Linnaeus, 1758"]},"leaf":0});
is_json_GET("/taxonomy/id/9606?content-type=application/json;simple=1",$expected,'Check id endpoint with valid data');
action_bad("/taxonomyid/11111111111111",'ID should not be found. Fail');
action_bad("/taxonomyid/-1",'ID should not be found.');
is_json_GET("/taxonomy/name/human?simple=1",[$expected],'Test human lookup with name');