def _check_state(version): expected_data = taa_aml_expected_data[version] _data = state.get( ConfigReqHandler._state_path_taa_aml_version(version), isCommitted=False ) if version in written: assert (config_state_serializer.deserialize(_data)[VALUE] == config_state_serializer.deserialize(expected_data)) else: assert _data is None
def test_state_path_taa_aml_version(): assert ConfigReqHandler._state_path_taa_aml_version('some_version') == b'3:v:some_version'