'Test the save_state function.'

def test_should_return_empty_state_on_save_state(self):

    top = self._create_item(u'top', False)
    tree_helper = BranchesTreeHelper()
    result = tree_helper.save_state(top)
    self.assertEqual({u'top': {}}, result)
