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

pull/14/head
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,
}