Пример #1
0
 def test_node_0_tree(self):
     """Test subtree for index 0 """
     test_result = get_tree_by_id(node_id=5)  # not 5 does not exist
     self.assertEqual(test_result, None)
Пример #2
0
 def test_node_4_tree(self):
     """Test subtree for index 4 """
     test_result = get_tree_by_id(node_id=4)
     self.assertDictEqual(test_result, self.node_4_tree_correct_result)