'Test the find_child function.'

def test_should_return_a_valid_child_on_find_child(self):

    items = self._create_top_item()
    tree_helper = BranchesTreeHelper()
    child = tree_helper.find_child(items[u'top'], u'child_1')
    self.assertEqual(u'child_1', child.name)
    child = tree_helper.find_child(items[u'top'], u'child_2/sub_child_2_2')
    self.assertEqual(u'sub_child_2_2', child.name)
