Esempio n. 1
0
def test_reception_link():
    receiver = DummyReceiver()
    decryption = DummyDecryption()
    filter = DummyFilter()
    interface = TestInterface()

    receiver.output = decryption
    decryption.output = filter
    filter.output = interface
Esempio n. 2
0
def test_reception_flow():
    receiver = DummyReceiver()
    decryption = DummyDecryption()
    filter = DummyFilter()
    interface = TestInterface()

    receiver.output = decryption
    decryption.output = filter
    filter.output = interface

    contacts = TestContacts()
    receiver.contacts = contacts

    receiver.fetch()