add more test cases to ParentNodeProviderTest

This commit is contained in:
Jimmy Lai 2019-09-26 01:27:13 -07:00 committed by jimmylai
parent db6092dffd
commit 4cde536678
2 changed files with 21 additions and 1 deletions

View file

@ -137,7 +137,7 @@ Parent Node Metadata
--------------------
A :class:`~libcst.CSTNode` only has attributes link to its child nodes and thus only top-down
tree traversal is doable. Sometimes user may want to access the parent :class:`~libcst.CSTNode`
for more information or traverse in buttom-up manner.
for more information or traverse in bottom-up manner.
We provide :class:`~libcst.metadata.ParentNodeProvider` for those use cases.
.. autoclass:: libcst.metadata.ParentNodeProvider