Permalink
Browse files

Added another test for find.

  • Loading branch information...
jkeyes committed Mar 28, 2012
1 parent 862b7d2 commit 2bf6e0ac751e661f7fb3ff09d92e67d050b9391d
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/unit/test_message_thread.py
@@ -66,6 +66,10 @@ def test_find(self):
self.assertEqual(1331767859,
time.mktime(messages[1].created_at.timetuple()))
+ @raises(ValueError)
+ def test_find_no_thread_id(self):
+ message_thread = MessageThread.find(email="xxx@example.com")
+
@patch('requests.request', create_response(200,
'get_message_thread_valid.json'))
def test_create(self):

0 comments on commit 2bf6e0a

Please sign in to comment.