create_remote_person()

2019-08-17
Marnanel Thurman 2019-05-29 09:52:52 +01:00
rodzic 54465e537e
commit a7948a76d0
2 zmienionych plików z 18 dodań i 6 usunięć

Wyświetl plik

@ -97,6 +97,20 @@ def mock_remote_object(
status, status,
content) content)
def create_remote_person(
url,
name,
publicKey):
mock_remote_object(
url=url,
content=json.dumps(remote_user(
url=url,
name=name,
publicKey = publicKey,
)),
)
def test_message_body_and_headers(secret='', def test_message_body_and_headers(secret='',
path=INBOX_PATH, path=INBOX_PATH,
host=INBOX_HOST, host=INBOX_HOST,

Wyświetl plik

@ -24,12 +24,10 @@ class TestInbox(TestCase):
auto_follow=False, auto_follow=False,
) )
mock_remote_object(REMOTE_FRED, create_remote_person(
content=json.dumps(remote_user( name='fred',
url=REMOTE_FRED, url=REMOTE_FRED,
name='Fred', publicKey = keys['public'],
publicKey = keys['public'],
)),
) )
post_test_message( post_test_message(