17 lines
455 B
Python
17 lines
455 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") == True
|
||
|
|
||
|
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) == None
|
||
|
)
|