def test_set_state(self):
self.args.session = os.getppid()
state = {
"connections": {
"foo": {
"url": "some url"}}}
common.set_state(self.args, state)
result = common.get_state(self.args)
assert state == result