From 074448c996810d3f5f836849137f0ee15c43a421 Mon Sep 17 00:00:00 2001 From: boukeversteegh Date: Sun, 24 May 2020 19:52:14 +0200 Subject: [PATCH] Restore accidentally removed binary equality test --- betterproto/tests/test_inputs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/betterproto/tests/test_inputs.py b/betterproto/tests/test_inputs.py index 628344e..8c4f8d4 100644 --- a/betterproto/tests/test_inputs.py +++ b/betterproto/tests/test_inputs.py @@ -99,6 +99,9 @@ def test_binary_compatibility(repeat, test_data: TestData) -> None: # # Generally this can't be relied on, but here we are aiming to match the # # existing Python implementation and aren't doing anything tricky. # # https://developers.google.com/protocol-buffers/docs/encoding#implications + assert bytes(plugin_instance_from_json) == reference_binary_output + assert bytes(plugin_instance_from_binary) == reference_binary_output + assert plugin_instance_from_json == plugin_instance_from_binary assert ( plugin_instance_from_json.to_dict() == plugin_instance_from_binary.to_dict()