Skip to content

Commit

Permalink
failing test for has_subdivisions
Browse files Browse the repository at this point in the history
  • Loading branch information
dogweather committed Jul 23, 2023
1 parent aba74f9 commit a2fb424
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/public_law/parsers/usa/crs_divisions_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from scrapy.http.response.xml import XmlResponse

from public_law.test_util import *
from public_law.parsers.usa.colorado.crs import parse_title_bang
from public_law.parsers.usa.colorado.crs import parse_title_bang, has_subdivisions
from public_law.items.crs import Division


Expand All @@ -25,6 +25,13 @@
PARSED_TITLE_07 = parse_title_bang(TITLE_07, null_logger)


class TestHasSubdivisions:
def test_when_it_does(self):
assert has_subdivisions(PARSED_TITLE_07)

def test_when_it_does_not(self):
assert not has_subdivisions(PARSED_TITLE_16)


class TestParseErrors:
def test_name(self):
Expand Down

0 comments on commit a2fb424

Please sign in to comment.