From 428942e5f44939357fcf52a2cf6d9eef89b64982 Mon Sep 17 00:00:00 2001 From: Joshua Roesslein Date: Sat, 17 Aug 2013 13:36:07 -0700 Subject: [PATCH] Test for utils list_to_csv(). --- tests/test_utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_utils.py b/tests/test_utils.py index c2ec51e..0920839 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -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"])) + -- 2.25.1