def test_resolve_confused_context_appendix(self):
     tokenized = [tokens.Context([None, 'Appendix:A', '12'])]
     converted = diff.resolve_confused_context(
         tokenized, ['123', 'Interpretations'])
     self.assertEqual(
         converted, [tokens.Context([None, 'Interpretations', 'A',
                                     '(12)'])])
 def test_resolve_confused_context(self):
     tokenized = [tokens.Context([None, None, '12', 'a', '2', 'iii'])]
     converted = diff.resolve_confused_context(
         tokenized, ['123', 'Interpretations'])
     self.assertEqual(
         converted, [tokens.Context([None, 'Interpretations', '12',
                                     '(a)(2)(iii)'])])
Example #3
0
 def test_resolve_confused_context_appendix(self):
     tokenized = [tokens.Context([None, 'Appendix:A', '12'])]
     converted = diff.resolve_confused_context(tokenized,
                                               ['123', 'Interpretations'])
     self.assertEqual(
         converted,
         [tokens.Context([None, 'Interpretations', 'A', '(12)'])])
Example #4
0
 def test_resolve_confused_context(self):
     tokenized = [tokens.Context([None, None, '12', 'a', '2', 'iii'])]
     converted = diff.resolve_confused_context(tokenized,
                                               ['123', 'Interpretations'])
     self.assertEqual(
         converted,
         [tokens.Context([None, 'Interpretations', '12', '(a)(2)(iii)'])])
 def test_resolve_confused_context_appendix(self):
     tokenized = [tokens.Context([None, "Appendix:A", "12"])]
     converted = diff.resolve_confused_context(tokenized, ["123", "Interpretations"])
     self.assertEqual(converted, [tokens.Context([None, "Interpretations", "A", "(12)"])])
 def test_resolve_confused_context(self):
     tokenized = [tokens.Context([None, None, "12", "a", "2", "iii"])]
     converted = diff.resolve_confused_context(tokenized, ["123", "Interpretations"])
     self.assertEqual(converted, [tokens.Context([None, "Interpretations", "12", "(a)(2)(iii)"])])