Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Feb 12, 2022
1 parent 2a9f06a commit 4de2462
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_fields_mitigate_collision.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ class TestMessage(proto.Message):
obj.eggs = "has_eggs"
assert obj.spam_ == "has_spam"

# Test that `spam` is coerced to `spam_`
modified_obj = TestMessage({"spam": "has_spam", "eggs": "has_eggs"})
assert modified_obj.spam_ == "has_spam"

0 comments on commit 4de2462

Please sign in to comment.