old_contents: #!/usr/bin/env python3
  
  import chatparse
  import unittest
  
  class CornerTests(unittest.TestCase):
      def test_email(self):
          '''test email to make sure it is not a mention'''
          msg = "user@example.com"
          expect = {}
          result = chatparse.parse(msg)
          self.assertEqual(expect, result)
  
      def test_nonexisturl(self):
          '''do not include links to unknown URLs'''
          msg = "http://site-does-not-exist.com"
          expect = {}
          result = chatparse.parse(msg)
          self.assertEqual(expect, result)
  
      def test_toolongemoticon(self):
          '''test for emoticon bigger that 15 chars'''
          msg = "(1234567890123456)"
          expect = {}
          result = chatparse.parse(msg)
          self.assertEqual(expect, result)
  
      def test_longemoticon(self):
          '''test for emoticon bigger that 15 chars'''
          msg = "(123456789012345)"
          expect = {
              "emoticons": [ "123456789012345" ]
           }
          result = chatparse.parse(msg)
          self.assertEqual(expect, result)
  
  if __name__ == '__main__':
      unittest.main()
  
new_contents: #!/usr/bin/env python3
  
  import chatparse
  import unittest
  
  class CornerTests(unittest.TestCase):
      def test_doublemention(self):
          '''not sure what should happen, going with dropping bob'''
          msg = "@billy@bob"
          expect = {
            "mentions": [
              "billy"
            ]
          }
          result = chatparse.parse(msg)
          self.assertEqual(expect, result)
  
      def test_email(self):
          '''test email to make sure it is not a mention'''
          msg = "user@example.com"
          expect = {}
          result = chatparse.parse(msg)
          self.assertEqual(expect, result)
  
      def test_nonexisturl(self):
          '''do not include links to unknown URLs'''
          msg = "http://site-does-not-exist.com"
          expect = {}
          result = chatparse.parse(msg)
          self.assertEqual(expect, result)
  
      def test_toolongemoticon(self):
          '''test for emoticon bigger that 15 chars'''
          msg = "(1234567890123456)"
          expect = {}
          result = chatparse.parse(msg)
          self.assertEqual(expect, result)
  
      def test_longemoticon(self):
          '''test for emoticon bigger that 15 chars'''
          msg = "(123456789012345)"
          expect = {
              "emoticons": [ "123456789012345" ]
           }
          result = chatparse.parse(msg)
          self.assertEqual(expect, result)
  
  if __name__ == '__main__':
      unittest.main()
  
subject: test for @billy@bob