예제 #1
0
파일: reports.py 프로젝트: pombredanne/reed
 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)))
예제 #2
0
파일: news.py 프로젝트: pombredanne/reed
 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'))
예제 #3
0
파일: news.py 프로젝트: pombredanne/reed
 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'))
예제 #4
0
파일: news.py 프로젝트: pombredanne/reed
 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'))
예제 #5
0
파일: news.py 프로젝트: pombredanne/reed
 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'))