aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_linkifytext.py
diff options
context:
space:
mode:
Diffstat (limited to '_pytest/test_linkifytext.py')
-rw-r--r--_pytest/test_linkifytext.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/_pytest/test_linkifytext.py b/_pytest/test_linkifytext.py
index f321d81..c8489be 100644
--- a/_pytest/test_linkifytext.py
+++ b/_pytest/test_linkifytext.py
@@ -50,3 +50,11 @@ def test_linkifytext_with_many_paranthesis(realish_eventrouter):
text = linkify_text('@k(o(v)a)())s: my(( test) message', team, channel)
assert text == '@k(o(v)a)())s: my(( test) message'
+
+def test_linkifytext_names_with_apostrophe(realish_eventrouter):
+ team = realish_eventrouter.teams.values()[0]
+ channel = team.channels.values()[0]
+
+ text = linkify_text('@O\'Connor: my test message', team, channel)
+
+ assert text == '@O\'Connor: my test message'