Пример #1
0
 def test_identify_payload_with_diaspora_encrypted_payload(self):
     assert identify_request(RequestType(body=DIASPORA_ENCRYPTED_PAYLOAD)) is True
Пример #2
0
 def test_identify_payload_with_reshare(self):
     assert identify_request(RequestType(body=DIASPORA_RESHARE_PAYLOAD)) is True
Пример #3
0
 def test_identify_payload_with_diaspora_public_payload(self):
     assert identify_request(RequestType(body=DIASPORA_PUBLIC_PAYLOAD)) is True
     assert identify_request(RequestType(body=bytes(DIASPORA_PUBLIC_PAYLOAD, encoding="utf-8"))) is True
Пример #4
0
 def test_identify_payload_with_other_payload(self):
     assert identify_request(RequestType(body="foobar not a diaspora protocol")) is False