Test for utils list_to_csv().
authorJoshua Roesslein <jroesslein@gmail.com>
Sat, 17 Aug 2013 20:36:07 +0000 (13:36 -0700)
committerJoshua Roesslein <jroesslein@gmail.com>
Sat, 17 Aug 2013 20:36:07 +0000 (13:36 -0700)
tests/test_utils.py

index c2ec51efff0d949e1de779455f69cf455efe25bc..09208397dc5daa1ab2f36e17aa304a1f5b7a1989 100644 (file)
@@ -8,3 +8,8 @@ class TweepyUtilsTests(TestCase):
         result = parse_datetime("Wed Aug 27 13:08:45 +0000 2008")
         self.assertEqual(datetime(2008, 8, 27, 13, 8, 45), result)
 
+    def testlist_to_csv(self):
+        self.assertEqual("1,2,3", list_to_csv([1,2,3]))
+        self.assertEqual("bird,tweet,nest,egg",
+                         list_to_csv(["bird", "tweet", "nest", "egg"]))
+