示例#1
0
 def test_invalid_region_and_species_for_region_species_obs(self):
     response = recent.region_species_obs('rtype', 'subnational',
                                          'Sci name')
     print("test_invalid_region_species_obs response = ", response)
     self.assertEqual(response, '[]')
示例#2
0
def get_species(region, fullName):
    data = recent.region_species_obs(region, fullName)
    return render_template('species_results.html', data=data, name=fullName)
示例#3
0
 def test_invalid_region_for_region_species_obs(self):
     response = recent.region_species_obs('rtype', 'subregion',
                                          'Aix sponsa')
     print("test_invalid_region_species_obs response = ", response)
     self.assertEqual(response, '[]')