Ejemplo n.º 1
0
 def test_citations_to_the_OR_constitution(self):
     raw_text = (
         "ORS 273.045, 273.775 - 273.79 & OR Const., Art. VIII & Sec. 5"
     )
     expected = [
         "ORS 273.045", "273.775 - 273.79", "OR Const., Art. VIII", "Sec. 5"
     ]
     assert statute_meta(raw_text) == expected
Ejemplo n.º 2
0
 def test_const_cite_with_comma_after_article(self):
     raw_text = "OR Const. Art. XV, Sec. 4(4) & ORS 461"
     expected = ["OR Const. Art. XV, Sec. 4(4)", "ORS 461"]
     assert statute_meta(raw_text) == expected
Ejemplo n.º 3
0
 def test_const_cite_without_comma(self):
     raw_text = "ORS 407.115, 407.125 & Art. XI-A OR Const."
     expected = ["ORS 407.115", "407.125", "Art. XI-A OR Const."]
     assert statute_meta(raw_text) == expected
Ejemplo n.º 4
0
 def test_a_mix_of_ranges_and_single_cites(self):
     raw_text = "ORS 183.310 - 183.550, 192.660, 243.061 - 243.302 & 292.05"
     expected = [
         "ORS 183.310 - 183.550", "192.660", "243.061 - 243.302", "292.05"
     ]
     assert statute_meta(raw_text) == expected
Ejemplo n.º 5
0
 def test_parses_a_range_as_a_single_item(self):
     raw_text = "ORS 243.061 - 243.302"
     expected = ["ORS 243.061 - 243.302"]
     assert statute_meta(raw_text) == expected
Ejemplo n.º 6
0
 def test_the_ampersand_separator(self):
     raw_text = "ORS 181A.235 & ORS 192"
     expected = ["ORS 181A.235", "ORS 192"]
     assert statute_meta(raw_text) == expected
Ejemplo n.º 7
0
 def test_a_single_chapter_citation(self):
     raw_text = "ORS 183"
     expected = ["ORS 183"]
     assert statute_meta(raw_text) == expected