Skip to content

Commit 2bf6e0a

Browse files
committed
Added another test for find.
1 parent 862b7d2 commit 2bf6e0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unit/test_message_thread.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ def test_find(self):
6666
self.assertEqual(1331767859,
6767
time.mktime(messages[1].created_at.timetuple()))
6868

69+
@raises(ValueError)
70+
def test_find_no_thread_id(self):
71+
message_thread = MessageThread.find(email="xxx@example.com")
72+
6973
@patch('requests.request', create_response(200,
7074
'get_message_thread_valid.json'))
7175
def test_create(self):

0 commit comments

Comments
 (0)