Beispiel #1
0
 def test_all_reports_were_fetched(self):
     self.request_matches('/report/%s/' % (self.username), 
         filter_by_value(load_yaml_fixture('archive.yaml'),
             'user', get_key_for_user(self.username)))
Beispiel #2
0
 def test_recent_concelho_latin_species_name_return_records(self):
     self.request_matches('/report/?concelho=loures&species=ficedula hypoleuca', 
         filter_by_tag(filter_by_tag(load_yaml_fixture('recent.yaml'), 'concelho:loures'), 'ficedula hypoleuca'))
Beispiel #3
0
 def test_recent_concelho_return_records(self):
     self.request_matches('/report/?concelho=loures&species=all', 
         filter_by_tag(load_yaml_fixture('recent.yaml'), 'concelho:loures'))
Beispiel #4
0
 def test_recent_concelho_por_species_name_return_records(self):
     self.request_matches('/report/?concelho=loures&species=papa moscas', 
         filter_by_tag(filter_by_tag(load_yaml_fixture('recent.yaml'), 'concelho:loures'), 'papa moscas'))
Beispiel #5
0
 def test_recent_region_return_records(self):
     self.request_matches('/report/?region=lisboa&species=all', 
         filter_by_tag(load_yaml_fixture('recent.yaml'), 'region:lisboa'))