From 0287b837971c27ee55bc4dca95d31afc68d2aeea Mon Sep 17 00:00:00 2001
From: Shivaram Lingamneni <slingamn@cs.stanford.edu>
Date: Wed, 16 Sep 2020 12:12:24 -0400
Subject: [PATCH] add a test for SCENE

---
 irctest/server_tests/test_roleplay.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/irctest/server_tests/test_roleplay.py b/irctest/server_tests/test_roleplay.py
index 552f6ea..4261730 100644
--- a/irctest/server_tests/test_roleplay.py
+++ b/irctest/server_tests/test_roleplay.py
@@ -46,6 +46,19 @@ class RoleplayTestCase(cases.BaseServerTestCase):
         self.assertTrue(reply.prefix.startswith('*bilbo*!'))
         self.assertIn('too much bread', reply.params[1])
 
+        self.sendLine(bar, 'SCENE %s dark and stormy night' % (chan,))
+        reply = self.getMessages(bar)[0]
+        self.assertEqual(reply.command, 'PRIVMSG')
+        self.assertEqual(reply.params[0], chan)
+        self.assertTrue(reply.prefix.startswith('=Scene=!'))
+        self.assertIn('dark and stormy night', reply.params[1])
+
+        reply = self.getMessages(qux)[0]
+        self.assertEqual(reply.command, 'PRIVMSG')
+        self.assertEqual(reply.params[0], chan)
+        self.assertTrue(reply.prefix.startswith('=Scene=!'))
+        self.assertIn('dark and stormy night', reply.params[1])
+
         # test history storage
         self.sendLine(qux, 'CHATHISTORY LATEST %s * 10' % (chan,))
         reply = [msg for msg in self.getMessages(qux) if msg.command == 'PRIVMSG' and 'bilbo' in msg.prefix][0]