old_contents: #    Copyright 2017 Starbot Discord Project
  # 
  #    Licensed under the Apache License, Version 2.0 (the "License");
  #    you may not use this file except in compliance with the License.
  #    You may obtain a copy of the License at
  # 
  #        http://www.apache.org/licenses/LICENSE-2.0
  # 
  #    Unless required by applicable law or agreed to in writing, software
  #    distributed under the License is distributed on an "AS IS" BASIS,
  #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  #    See the License for the specific language governing permissions and
  #    limitations under the License.
  
  import unittest
  from api import message, plugin
  from plugins import excuses
  
  class TestExcuseSuite(unittest.TestCase):
  
      def testExcuseMsg(self):
          msg = message.message(body="")
          msg.command = "excuse"
  
          fullExcuseList = []
  
          for sorry in excuses.sorryList:
              for excuse in excuses.excuseList:
                  fullExcuseList.append('*{} {}*'.format(sorryList[sorry], excuseList[excuse])
          
          result=excuses.onCommand(msg)
          self.assertEqual(type(result), type(msg))
          self.assertEqual(result.body in fullExcuseList, True)
  
new_contents: #    Copyright 2017 Starbot Discord Project
  # 
  #    Licensed under the Apache License, Version 2.0 (the "License");
  #    you may not use this file except in compliance with the License.
  #    You may obtain a copy of the License at
  # 
  #        http://www.apache.org/licenses/LICENSE-2.0
  # 
  #    Unless required by applicable law or agreed to in writing, software
  #    distributed under the License is distributed on an "AS IS" BASIS,
  #    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  #    See the License for the specific language governing permissions and
  #    limitations under the License.
  
  import unittest
  from api import message, plugin
  from plugins import excuses
  
  class TestExcuseSuite(unittest.TestCase):
  
      def testExcuseMsg(self):
          msg = message.message(body="")
          msg.command = "excuse"
  
          excuseList = ["I have an appointment with a robot.", 
          "I was abducted by robots.", 
          "I didn’t know what day it was because I was looking at the Robotic Calendar.",
          "My robot threw up on my source code.", 
          "I need to take my robot for a walk.",
          "I had to get a cybernetic head and couldn't get anything done.",
          "My Robot Assistant blue-screened.",
          "A kernel panic erased my work.",
          "Somebody used up the data limit watching YouTube."]
          sorryList = ["Please excuse me,", "I'm sorry, but", "I hope you forgive me, because"]
          fullExcuseList = []
  
          for sorry in sorryList:
              for excuse in excuseList:
                  fullExcuseList.append('*{} {}*'.format(sorry, excuse))
          
          result=excuses.onCommand(msg)
          print(result.body)
          self.assertEqual(type(result), type(msg))
          self.assertEqual(result.body in fullExcuseList, True)
  
subject: Fix the unit test :)