def test_axis_node_address(self): "Test the node address is calculated correctly." self.assertEqual(Axis.node_address(self.node), (1, 4, 3))
def setUp(self): source = join(dirname(__file__), 'doc', 'doctree.rst') with open(source, 'r', encoding='utf-8') as rst: self.doctree = publish_doctree(rst.read()) self.node = self.doctree.next_node(self._matches_node_i) self.address = Axis.node_address(self.node)