Fix tests.
authorJoshua Roesslein <jroesslein@gmail.com>
Thu, 10 Dec 2009 18:39:45 +0000 (12:39 -0600)
committerJoshua Roesslein <jroesslein@gmail.com>
Thu, 10 Dec 2009 18:39:45 +0000 (12:39 -0600)
tests.py

index cdef1d891028cdc32ccbb5ff9c2e6131eafd9627..75c02dca2aec4e6898dc2ebec75c60d76274900a 100644 (file)
--- a/tests.py
+++ b/tests.py
@@ -97,7 +97,7 @@ class TweepyAPITests(unittest.TestCase):
 
     def testsendanddestroydirectmessage(self):
         # send
-        sent_dm = self.api.send_direct_message(username, 'test message')
+        sent_dm = self.api.send_direct_message(username, text='test message')
         self.assertEqual(sent_dm.text, 'test message')
         self.assertEqual(sent_dm.sender.screen_name, username)
         self.assertEqual(sent_dm.recipient.screen_name, username)