Add fixtures for pubsub and router

And a starting `test_pubsub.py`
This commit is contained in:
mhchia
2019-07-27 18:41:16 +08:00
parent 21e97407ef
commit 96563c0d84
5 changed files with 126 additions and 6 deletions

View File

@ -340,11 +340,11 @@ class Pubsub:
:param msg_forwarder: the peer who forward us the message.
:param msg: the message we are going to push out.
"""
# TODO: - Check if the `source` is in the blacklist. If yes, reject.
# TODO: Check if the `source` is in the blacklist. If yes, reject.
# TODO: - Check if the `from` is in the blacklist. If yes, reject.
# TODO: Check if the `from` is in the blacklist. If yes, reject.
# TODO: - Check if signing is required and if so signature should be attached.
# TODO: Check if signing is required and if so signature should be attached.
if self._is_msg_seen(msg):
return