diff options
author | Yuichi Ito <ito.yuichi0@gmail.com> | 2013-12-12 15:35:27 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-12-12 18:21:59 +0900 |
commit | f7118a89c1cf72d4144c71a6668d01869d2e6553 (patch) | |
tree | afa332c4849c441b321c320cb046db04e9ba1aaa /LICENSE | |
parent | 1e26d5a9828c7590d42fcf5aa9b860f2e437eda4 (diff) |
packet lib: add unittests for reversibility about json
this patch adds tests that examine reversibility about json for all packet library.
the test codes are written as:
jsondict = msg1.to_jsondict()
msg2 = cls.from_jsondict(jsondict['msg'])
eq_(str(msg1), str(msg2))
TODO: make VRRP reversible.
since VRRP has an unusual construction method, VRRP is not reversible about json.
Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions