def test_is_reserved_node(self): n = Node('[Reserved]', label=['205', '4', 'a']) self.assertTrue(compiler.is_reserved_node(n)) n = Node('(i) a real paragraph', label=['205', '6']) self.assertFalse(compiler.is_reserved_node(n)) n = Node('', title='[Reserved]', label=['205', '7', 'a']) self.assertTrue(compiler.is_reserved_node(n))
def test_is_reserved_node(self): n = Node("[Reserved]", label=["205", "4", "a"]) self.assertTrue(compiler.is_reserved_node(n)) n = Node("(i) a real paragraph", label=["205", "6"]) self.assertFalse(compiler.is_reserved_node(n)) n = Node("", title="[Reserved]", label=["205", "7", "a"]) self.assertTrue(compiler.is_reserved_node(n))