Пример #1
0
 def test_identify_payload_with_other_payload(self):
     assert identify_payload("foobar not a diaspora protocol") == False
Пример #2
0
 def test_identify_payload_with_diaspora_payload(self):
     assert identify_payload(UNENCRYPTED_DIASPORA_PAYLOAD) == True
Пример #3
0
 def test_identify_payload_with_other_payload(self):
     assert identify_payload("foobar not a diaspora protocol") == False
Пример #4
0
 def test_identify_payload_with_diaspora_payload(self):
     assert identify_payload(UNENCRYPTED_DIASPORA_PAYLOAD) == True
Пример #5
0
 def test_identify_payload_with_diaspora_encrypted_payload(self):
     assert identify_payload(DIASPORA_ENCRYPTED_PAYLOAD) == True
Пример #6
0
 def test_identify_payload_with_diaspora_public_payload(self):
     assert identify_payload(DIASPORA_PUBLIC_PAYLOAD) == True
     assert identify_payload(bytes(DIASPORA_PUBLIC_PAYLOAD, encoding="utf-8")) == True