You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 26, 2018. It is now read-only.
responses=app.respond(r'@message george Are you going to the meeting?')
20
+
assertresponses== [u'repl_user, I will tell george when they appear online.']
21
+
22
+
23
+
deftest_remind_user(app):
24
+
"""
25
+
The user should be messaged when joining the channel
26
+
"""
27
+
responses=app.respond(r'@message george Are you going to the meeting?')
28
+
assertresponses== [u'repl_user, I will tell george when they appear online.']
29
+
30
+
responses=app.respond('george joined the channel', **{
31
+
'Command': 'JOIN',
32
+
'User': 'george'})
33
+
assertresponses== ["Beep BEEP! You received the following messages in #dummy-channel when you were offline.\nFrom repl_user 'Are you going to the meeting?'"]
34
+
35
+
deftest_multiple_reminders(app):
36
+
"""
37
+
Multiple reminders should work too.
38
+
"""
39
+
responses=app.respond(r'@message george Are you going to the meeting?')
40
+
responses=app.respond(r'@message george I think I will be going.')
41
+
42
+
responses=app.respond('george joined the channel', **{
43
+
'Command': 'JOIN',
44
+
'User': 'george'})
45
+
assertresponses== ["Beep BEEP! You received the following messages in #dummy-channel when you were offline.\nFrom repl_user 'I think I will be going.'\nFrom repl_user 'Are you going to the meeting?'"]
0 commit comments