kopia lustrzana https://gitlab.com/marnanel/chapeau
create_remote_person()
rodzic
54465e537e
commit
a7948a76d0
|
@ -97,6 +97,20 @@ def mock_remote_object(
|
|||
status,
|
||||
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='',
|
||||
path=INBOX_PATH,
|
||||
host=INBOX_HOST,
|
||||
|
|
|
@ -24,12 +24,10 @@ class TestInbox(TestCase):
|
|||
auto_follow=False,
|
||||
)
|
||||
|
||||
mock_remote_object(REMOTE_FRED,
|
||||
content=json.dumps(remote_user(
|
||||
url=REMOTE_FRED,
|
||||
name='Fred',
|
||||
publicKey = keys['public'],
|
||||
)),
|
||||
create_remote_person(
|
||||
name='fred',
|
||||
url=REMOTE_FRED,
|
||||
publicKey = keys['public'],
|
||||
)
|
||||
|
||||
post_test_message(
|
||||
|
|
Ładowanie…
Reference in New Issue