def test_it_normalizes_section(self):
     section = ChargeCreator._set_section(statute=ChargeCreator._strip_non_alphanumeric_chars("475B.349(3)(C)"))
     assert section == "475B349"
 def test_it_sets_section_to_the_first_7_digits_when_4th_char_in_statute_is_a_letter(self):
     section = ChargeCreator._set_section(statute="475B3493C")
     assert section == "475B349"
 def test_it_sets_section_to_none_if_statute_is_does_not_contain_a_section(self):
     section = ChargeCreator._set_section(statute="29")
     assert section == ""
 def test_it_sets_section_to_the_first_6_digits_of_statute(self):
     section = ChargeCreator._set_section("1231235B")
     assert section == "123123"