def test_at_server_doesnt_isupport(self): self.server_no_chantypes() self.assertTrue(weechat_otr.is_a_channel('@#channel', 'server'))
def test_not_a_channel_server_doesnt_isupport(self): self.server_no_chantypes() self.assertFalse(weechat_otr.is_a_channel('nick', 'server'))
def test_at(self): self.assertTrue(weechat_otr.is_a_channel('@#channel', 'server'))
def test_not_a_channel(self): self.assertFalse(weechat_otr.is_a_channel('nick', 'server'))
def test_plus(self): self.add_channel_prefix('+') self.assertTrue(weechat_otr.is_a_channel('+channel', 'server'))
def test_bang(self): self.add_channel_prefix('!') self.assertTrue(weechat_otr.is_a_channel('!channel', 'server'))
def test_bang(self): self.assertTrue(weechat_otr.is_a_channel('!channel'))
def test_ampersand(self): self.add_channel_prefix('&') self.assertTrue(weechat_otr.is_a_channel('&channel', 'server'))
def test_plus(self): self.assertTrue(weechat_otr.is_a_channel('+channel'))
def test_ampersand(self): self.assertTrue(weechat_otr.is_a_channel('&channel'))
def test_hash(self): self.assertTrue(weechat_otr.is_a_channel('#channel'))
def test_bang_server_doesnt_isupport(self): sys.modules['weechat'].server_no_chantypes() self.assertTrue(weechat_otr.is_a_channel('!channel', 'server'))