Skip to content

Commit

Permalink
Test miss
Browse files Browse the repository at this point in the history
  :wq
  • Loading branch information
gbin committed Jul 5, 2017
1 parent 9f1e3c9 commit c4efe43
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/base_backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,15 +251,17 @@ def test_buildreply(dummy_backend):
assert str(resp.to) == 'user'
assert str(resp.frm) == 'err'
assert str(resp.body) == 'Response'
assert str(resp.parent) is None
assert resp.parent is None


def test_buildreply_with_parent(dummy_backend):
m = dummy_backend.build_message('Content')
m.frm = dummy_backend.build_identifier('user')
m.to = dummy_backend.build_identifier('somewhere')
resp = dummy_backend.build_reply(m, 'Response', threaded=True)

assert str(resp.parent) is not None
assert resp.parent is not None


def test_bot_admins_unique_string():
dummy = DummyBackend(extra_config={'BOT_ADMINS': 'err@localhost'})
Expand Down

0 comments on commit c4efe43

Please sign in to comment.