コード例 #1
0
ファイル: test_weechat_otr.py プロジェクト: fauno/weechat-otr
 def test_msg_plain_from_irc_action_invariant(self):
     msg_action = '/me does something'
     self.assertEqual(msg_action,
             weechat_otr.msg_plain_from_irc(
                 weechat_otr.msg_irc_from_plain(msg_action)
                 )
             )
コード例 #2
0
ファイル: test_weechat_otr.py プロジェクト: fauno/weechat-otr
 def test_msg_irc_from_plain_action_invariant(self):
     msg_action = '\x01ACTION does something\x01'
     self.assertEqual(msg_action,
             weechat_otr.msg_irc_from_plain(
                 weechat_otr.msg_plain_from_irc(msg_action)
                 )
             )
コード例 #3
0
ファイル: test_weechat_otr.py プロジェクト: fauno/weechat-otr
 def test_msg_plain_from_irc_no_action(self):
     msg_no_action = 'just a message'
     self.assertEqual(weechat_otr.msg_plain_from_irc(msg_no_action),
             msg_no_action)
コード例 #4
0
ファイル: test_weechat_otr.py プロジェクト: fauno/weechat-otr
 def test_msg_plain_from_irc_action(self):
     result = weechat_otr.msg_plain_from_irc('\x01ACTION does something\x01')
     self.assertEqual(result,
             '/me does something')
コード例 #5
0
 def test_msg_plain_from_irc_action_invariant(self):
     msg_action = '/me does something'
     self.assertEqual(
         msg_action,
         weechat_otr.msg_plain_from_irc(
             weechat_otr.msg_irc_from_plain(msg_action)))
コード例 #6
0
 def test_msg_plain_from_irc_no_action(self):
     msg_no_action = 'just a message'
     self.assertEqual(weechat_otr.msg_plain_from_irc(msg_no_action),
                      msg_no_action)
コード例 #7
0
 def test_msg_plain_from_irc_action(self):
     result = weechat_otr.msg_plain_from_irc(
         '\x01ACTION does something\x01')
     self.assertEqual(result, '/me does something')
コード例 #8
0
 def test_msg_irc_from_plain_action_invariant(self):
     msg_action = '\x01ACTION does something\x01'
     self.assertEqual(
         msg_action,
         weechat_otr.msg_irc_from_plain(
             weechat_otr.msg_plain_from_irc(msg_action)))