Conditions | 5 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | class TestBase(): |
||
25 | def testEventMatches(self): |
||
26 | import event |
||
27 | e = event.Event('__.test__') |
||
28 | assert e is not None |
||
29 | assert e._type is not None and e._type == "__.test__" |
||
30 | e.define(msg_definition="^test") |
||
31 | assert e.msg_definition == "^test" |
||
32 | assert e.matches(":[email protected] PRIVMSG #bots :test") == True |
||
33 | |||
40 |