kopia lustrzana https://gitlab.com/marnanel/chapeau
create_remote_person()
rodzic
54465e537e
commit
a7948a76d0
|
@ -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,
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Ładowanie…
Reference in New Issue