Exemplo n.º 1
0
 def test_at_server_doesnt_isupport(self):
     self.server_no_chantypes()
     self.assertTrue(weechat_otr.is_a_channel('@#channel', 'server'))
Exemplo n.º 2
0
 def test_not_a_channel_server_doesnt_isupport(self):
     self.server_no_chantypes()
     self.assertFalse(weechat_otr.is_a_channel('nick', 'server'))
Exemplo n.º 3
0
 def test_at(self):
     self.assertTrue(weechat_otr.is_a_channel('@#channel', 'server'))
Exemplo n.º 4
0
 def test_not_a_channel(self):
     self.assertFalse(weechat_otr.is_a_channel('nick', 'server'))
Exemplo n.º 5
0
 def test_plus(self):
     self.add_channel_prefix('+')
     self.assertTrue(weechat_otr.is_a_channel('+channel', 'server'))
Exemplo n.º 6
0
 def test_bang(self):
     self.add_channel_prefix('!')
     self.assertTrue(weechat_otr.is_a_channel('!channel', 'server'))
Exemplo n.º 7
0
 def test_bang(self):
     self.assertTrue(weechat_otr.is_a_channel('!channel'))
Exemplo n.º 8
0
 def test_ampersand(self):
     self.add_channel_prefix('&')
     self.assertTrue(weechat_otr.is_a_channel('&channel', 'server'))
Exemplo n.º 9
0
 def test_plus(self):
     self.assertTrue(weechat_otr.is_a_channel('+channel'))
Exemplo n.º 10
0
 def test_ampersand(self):
     self.assertTrue(weechat_otr.is_a_channel('&channel'))
Exemplo n.º 11
0
 def test_hash(self):
     self.assertTrue(weechat_otr.is_a_channel('#channel'))
Exemplo n.º 12
0
 def test_bang_server_doesnt_isupport(self):
     sys.modules['weechat'].server_no_chantypes()
     self.assertTrue(weechat_otr.is_a_channel('!channel', 'server'))
Exemplo n.º 13
0
 def test_bang_server_doesnt_isupport(self):
     sys.modules['weechat'].server_no_chantypes()
     self.assertTrue(weechat_otr.is_a_channel('!channel', 'server'))