def test_multi_id_paragraph_parsing_with_interp_reference(self): from regulations3k.scripts.ecfr_importer import PAYLOAD PAYLOAD.interp_refs.update({'2': { 'p': 'see(2-p-Interp)', 'p-1': 'see(2-p-1-Interp)', 'p-1-i': 'see(2-p-1-i-Interp)'} }) graph = ( "<P>(p) <I>Empirically derived scoring systems</I> - " "(1) <I>Credit scoring systems</I> (i) Credit scoring systems " "evaluate an applicant's creditworthiness mechanically.\n</P>") result = parse_multi_id_graph(graph, ['p', '1', 'i'], '2') self.assertIn('see(2-p-1-i-Interp)', result)
def test_multi_id_paragraph_parsing_with_interp_reference(self): PAYLOAD.interp_refs.update({'2': { 'p': 'see(2-p-Interp)', 'p-1': 'see(2-p-1-Interp)', 'p-1-i': 'see(2-p-1-i-Interp)'} }) graph = ( "<P>(p) <I>Empirically derived scoring systems</I> - " "(1) <I>Credit scoring systems</I> (i) Credit scoring systems " "evaluate an applicant's creditworthiness mechanically.\n</P>") result = ecfr_importer.parse_multi_id_graph( graph, ['p', '1', 'i'], '2') self.assertIn('see(2-p-1-i-Interp)', result)