toddlers/tests/plugins/test_debug.py
Pierre-Yves Chibon 7af467ef1d Make the tests flake8 valid and enforce it in tox
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2020-06-26 15:18:09 +00:00

16 lines
447 B
Python

import toddlers.plugins.debug
import fedora_messaging.api
class TestDebugToddler:
def test_accepts_topic(self):
assert toddlers.plugins.debug.DebugToddler.accepts_topic("foo.bar")
def test_process(self):
msg = fedora_messaging.api.Message()
msg.id = 123
msg.topic = "toddlers.test.topic"
assert (
toddlers.plugins.debug.DebugToddler.process(config={}, message=msg) is None
)