toddlers/tests/plugins/test_debug.py
Nils Philippsen 8be9cead78 Fix import order, separation to appease flake8
Signed-off-by: Nils Philippsen <nils@redhat.com>
2020-07-02 12:51:48 +02:00

16 lines
447 B
Python

import fedora_messaging.api
import toddlers.plugins.debug
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
)