SYN-103: Remove "origin" and "destination" keys from edus

This commit is contained in:
Mark Haines 2014-11-13 15:48:51 +00:00
parent d085807070
commit 8d8a133c89
4 changed files with 4 additions and 14 deletions

View file

@ -122,11 +122,10 @@ class Edu(JsonEncodedObject):
"edu_type",
]
# TODO: SYN-103: Remove "origin" and "destination" keys.
# internal_keys = [
# "origin",
# "destination",
# ]
internal_keys = [
"origin",
"destination",
]
class Transaction(JsonEncodedObject):

View file

@ -218,9 +218,6 @@ class FederationTestCase(unittest.TestCase):
"pdus": [],
"edus": [
{
# TODO: SYN-103: Remove "origin" and "destination"
"origin": "test",
"destination": "remote",
"edu_type": "m.test",
"content": {"testing": "content here"},
}

View file

@ -44,9 +44,6 @@ def _expect_edu(destination, edu_type, content, origin="test"):
"pdus": [],
"edus": [
{
# TODO: SYN-103: Remove "origin" and "destination" keys.
"origin": origin,
"destination": destination,
"edu_type": edu_type,
"content": content,
}

View file

@ -33,9 +33,6 @@ def _expect_edu(destination, edu_type, content, origin="test"):
"pdus": [],
"edus": [
{
# TODO: SYN-103: Remove "origin" and "destination" keys.
"origin": origin,
"destination": destination,
"edu_type": edu_type,
"content": content,
}