예제 #1
0
 def test_insert_section_links(self):
     """Ensure content with section sign becomes regs3k relative link."""
     test_regdown = ('Regdown with a linkable section § 1002.2(a).')
     test_result = insert_section_links(test_regdown)
     self.assertIn(REG_BASE.format('1002'), test_result)
예제 #2
0
 def test_insert_section_links(self):
     """Ensure content with section sign becomes regs3k relative link."""
     test_regdown = (
         'Regdown with a linkable section § 1002.2(a).')
     test_result = insert_section_links(test_regdown)
     self.assertIn(REG_BASE.format('1002'), test_result)
예제 #3
0
 def test_insert_section_links_no_links_found(self):
     linkless_regdown = 'Regdown with no links.'
     test_result = insert_section_links(linkless_regdown)
     self.assertIsNone(test_result)
예제 #4
0
 def test_insert_section_links_no_links_found(self):
     linkless_regdown = 'Regdown with no links.'
     test_result = insert_section_links(linkless_regdown)
     self.assertIsNone(test_result)