Skip to content

CloudEvent needs __eq__ overload to be supported #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
cumason123 opened this issue Aug 13, 2020 · 0 comments
Closed

CloudEvent needs __eq__ overload to be supported #93

cumason123 opened this issue Aug 13, 2020 · 0 comments

Comments

@cumason123
Copy link
Contributor

Expected Behavior

event = from_http(request.get_data(), request.headers)
event1 = from_http(request.get_data(), request.headers)
assert event == event1

I would expect this to pass as we are passing in the same fields into both objects

Actual Behavior

Assertion error because cloudevent does not support equality overload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant