tests: Add initial buffer tests.
This commit is contained in:
parent
ef7b2b7eaf
commit
2022151bd0
2 changed files with 22 additions and 0 deletions
16
tests/buffer_test.py
Normal file
16
tests/buffer_test.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from matrix.buffer import WeechatChannelBuffer
|
||||
|
||||
|
||||
class TestClass(object):
|
||||
def test_buffer(self):
|
||||
b = WeechatChannelBuffer("test_buffer_name", "example.org", "alice")
|
||||
assert b
|
||||
|
||||
def test_buffer_print(self):
|
||||
b = WeechatChannelBuffer("test_buffer_name", "example.org", "alice")
|
||||
b.message("alice", "hello world", 0, 0)
|
||||
assert b
|
||||
Loading…
Add table
Add a link
Reference in a new issue