def test_title_label_pair(self): title = u'A-1—Model Clauses' self.assertEqual(('1', 2), appendices.title_label_pair(title, 'A', '1000')) title = u'Part III—Construction Period' self.assertEqual(('III', 2), appendices.title_label_pair(title, 'A', '1000'))
def test_title_label_pair_parens(self): title = u"G-13(A)—Has No parent" self.assertEqual(("13(A)", 2), appendices.title_label_pair(title, "G", "1000")) title = u"G-13(C)(1) - Some Title" self.assertEqual(("13(C)(1)", 2), appendices.title_label_pair(title, "G", "1000")) title = u"G-13A - Some Title" self.assertEqual(("13A", 2), appendices.title_label_pair(title, "G", "1000")) title = u"G-13And Some Smashed Text" self.assertEqual(("13", 2), appendices.title_label_pair(title, "G", "1000"))
def test_title_label_pair(self): title = u'A-1—Model Clauses' self.assertEqual(('1', 2), appendices.title_label_pair(title, 'A', '1000')) title = u'Part III—Construction Period' self.assertEqual(('III', 2), appendices.title_label_pair(title, 'A', '1000')) title = u'Appendix DC-3(A) to Part 1000' self.assertEqual(('3(A)', 2), appendices.title_label_pair(title, 'DC', '1000'))
def test_title_label_pair_parens(self): title = u'G-13(A)—Has No parent' self.assertEqual(('13(A)', 2), appendices.title_label_pair(title, 'G', '1000')) title = u'G-13(C)(1) - Some Title' self.assertEqual(('13(C)(1)', 2), appendices.title_label_pair(title, 'G', '1000')) title = u'G-13A - Some Title' self.assertEqual(('13A', 2), appendices.title_label_pair(title, 'G', '1000')) title = u'G-13And Some Smashed Text' self.assertEqual(('13', 2), appendices.title_label_pair(title, 'G', '1000'))
def test_title_label_pair_parens(self): title = u'G-13(A)—Has No parent' self.assertEqual(('13(A)', 2), appendices.title_label_pair(title, 'G')) title = u'G-13(C)(1) - Some Title' self.assertEqual(('13(C)(1)', 2), appendices.title_label_pair(title, 'G')) title = u'G-13A - Some Title' self.assertEqual(('13A', 2), appendices.title_label_pair(title, 'G')) title = u'G-13And Some Smashed Text' self.assertEqual(('13', 2), appendices.title_label_pair(title, 'G'))
def test_title_label_pair(self): title = u"A-1—Model Clauses" self.assertEqual(("1", 2), appendices.title_label_pair(title, "A", "1000")) title = u"Part III—Construction Period" self.assertEqual(("III", 2), appendices.title_label_pair(title, "A", "1000"))
def test_title_label_pair(self): title = u'A-1—Model Clauses' self.assertEqual(('1', 2), appendices.title_label_pair(title, 'A')) title = u'Part III—Construction Period' self.assertEqual(('III', 2), appendices.title_label_pair(title, 'A'))
def test_title_label_pair_roman(self): title = u'IX. Sample Page for Statement of Record —1010.102(e)' self.assertEqual(('IX', 2), appendices.title_label_pair(title, 'A', '1010'))
def test_title_label_pair_parens(title, output): assert appendices.title_label_pair(title, 'G', '1000') == output
def test_title_label_pair(): title = u'A-1—Model Clauses' assert appendices.title_label_pair(title, 'A', '1000') == ('1', 2) title = u'Part III—Construction Period' assert appendices.title_label_pair(title, 'A', '1000') == ('III', 2)