def test_overwrite_marker(self): n = Node('3. Interpretation paragraph text.', label=['205', '2', 'a', 'Interp', '3'], node_type=Node.INTERP) changed = compiler.overwrite_marker(n, '2') self.assertTrue('2.' in changed.text) self.assertFalse('3.' in changed.text)
def test_overwrite_marker(self): n = Node( '3. Interpretation paragraph text.', label=['205', '2', 'a', 'Interp', '3'], node_type=Node.INTERP) changed = compiler.overwrite_marker(n, '2') self.assertTrue('2.' in changed.text) self.assertFalse('3.' in changed.text)
def test_overwrite_marker(self): n = Node("3. Interpretation paragraph text.", label=["205", "2", "a", "Interp", "3"], node_type=Node.INTERP) changed = compiler.overwrite_marker(n, "2") self.assertTrue("2." in changed.text) self.assertFalse("3." in changed.text)