cirq.testing.assert_json_roundtrip_works

Tests that the given object can serialized and de-serialized

obj The object to test round-tripping for.
text_should_be An optional argument to assert the JSON serialized output.
resolvers Any resolvers if testing those other than the default.

AssertionError The given object can not be round-tripped according to the given arguments.