def setUp(self): self.good_item = { "title": "Opinion Title", "court": "SCOTUS", "absolute_url": "http://absolute_url", "caseName": "Case Name", "status": "Precedential", "dateFiled": date(2015, 12, 25), "local_path": "txt/2015/12/28/opinion_text.txt", } self.zero_item = self.good_item.copy() self.zero_item.update( {"local_path": "txt/2015/12/28/opinion_text_bad.junk"}) self.bad_item = self.good_item.copy() self.bad_item.update( {"local_path": "asdfasdfasdfasdfasdfasdfasdfasdfasdjkfasdf"}) self.pdf_item = self.good_item.copy() self.pdf_item.update({ "local_path": "pdf/2013/06/12/" + "in_re_motion_for_consent_to_disclosure_of_court_records.pdf" }) self.null_item = self.good_item.copy() self.null_item.update({"local_path": None}) self.feed = JurisdictionFeed() super(JurisdictionFeedTest, self).setUp()
def setUp(self): self.good_item = { 'title': 'Opinion Title', 'court': 'SCOTUS', 'absolute_url': 'http://absolute_url', 'caseName': 'Case Name', 'status': 'Precedential', 'dateFiled': date(2015, 12, 25), 'local_path': 'txt/2015/12/28/opinion_text.txt' } self.zero_item = self.good_item.copy() self.zero_item.update({ 'local_path': 'txt/2015/12/28/opinion_text_bad.junk' }) self.bad_item = self.good_item.copy() self.bad_item.update({ 'local_path': 'asdfasdfasdfasdfasdfasdfasdfasdfasdjkfasdf' }) self.pdf_item = self.good_item.copy() self.pdf_item.update({ 'local_path': 'pdf/2013/06/12/' \ + 'in_re_motion_for_consent_to_disclosure_of_court_records.pdf' }) self.null_item = self.good_item.copy() self.null_item.update({ 'local_path': None }) self.feed = JurisdictionFeed() super(JurisdictionFeedTest, self).setUp()
), url( r'^audio/$', advanced, name='advanced_oa', ), url( r'^person/$', advanced, name='advanced_p', ), url( r'^recap/$', advanced, name='advanced_r', ), # Feeds & Podcasts url( r'^feed/(search)/$', SearchFeed(), name='search_feed' ), # lacks URL capturing b/c it will use GET queries. url( r'^feed/court/all/$', AllJurisdictionsFeed(), name='all_jurisdictions_feed' ), url( r'^feed/court/(?P<court>\w{1,15})/$', JurisdictionFeed(), name='jurisdiction_feed' ), ]