diff options
Diffstat (limited to '_pytest/test_topic_command.py')
-rw-r--r-- | _pytest/test_topic_command.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/_pytest/test_topic_command.py b/_pytest/test_topic_command.py index 5224ab7..79a26d3 100644 --- a/_pytest/test_topic_command.py +++ b/_pytest/test_topic_command.py @@ -19,6 +19,13 @@ def test_parse_topic_with_text(): assert topic == 'some topic text' +def test_parse_topic_with_text_with_newline(): + channel_name, topic = parse_topic_command('/topic some topic text\nsecond line') + + assert channel_name is None + assert topic == 'some topic text\nsecond line' + + def test_parse_topic_with_delete(): channel_name, topic = parse_topic_command('/topic -delete') |