def METHOD_NAME(self):
    nodes = self.create_descendant_tree(10)
    root = nodes[0]
    self.assertEqual(root.descendants(with_self=False).count(), 9)
    self.assertEqual(root.descendants(max_depth=1, with_self=False).count(), 1)
    self.assertEqual(root.descendants(max_depth=5, with_self=False).count(), 5)
    self.assertEqual(root.descendants(max_depth=10, with_self=False).count(), 9)