Пример #1
0
 def test_section_blank_paragraph_ids(self):
     no_ids_ref = '1002.1()'
     test_url = get_url(no_ids_ref)
     self.assertEqual(test_url, REG_BASE.format('1002/1'))
Пример #2
0
 def test_part_number_not_in_whitelist(self):
     bad_ref = '1017.5(d)(1)'
     test_url = get_url(bad_ref)
     self.assertIs(test_url, None)
Пример #3
0
 def test_section_with_paragraph_ids(self):
     ref_with_id = '1002.1(a)'
     test_url = get_url(ref_with_id)
     self.assertEqual(test_url, REG_BASE.format('1002/1') + '#a')
Пример #4
0
 def test_bad_part_number_is_skipped(self):
     bad_ref = '99.5(d)(1)'
     test_url = get_url(bad_ref)
     self.assertIs(test_url, None)
Пример #5
0
 def test_section_blank_paragraph_ids(self):
     no_ids_ref = '1002.1()'
     test_url = get_url(no_ids_ref)
     self.assertEqual(test_url, REG_BASE.format('1002/1'))
Пример #6
0
 def test_section_with_paragraph_ids(self):
     ref_with_id = '1002.1(a)'
     test_url = get_url(ref_with_id)
     self.assertEqual(test_url, REG_BASE.format('1002/1') + '#a')
Пример #7
0
 def test_part_number_not_in_whitelist(self):
     bad_ref = '1017.5(d)(1)'
     test_url = get_url(bad_ref)
     self.assertIs(test_url, None)
Пример #8
0
 def test_bad_part_number_is_skipped(self):
     bad_ref = '99.5(d)(1)'
     test_url = get_url(bad_ref)
     self.assertIs(test_url, None)