projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7a5586
)
Test for utils list_to_csv().
author
Joshua Roesslein
<jroesslein@gmail.com>
Sat, 17 Aug 2013 20:36:07 +0000
(13:36 -0700)
committer
Joshua Roesslein
<jroesslein@gmail.com>
Sat, 17 Aug 2013 20:36:07 +0000
(13:36 -0700)
tests/test_utils.py
patch
|
blob
|
blame
|
history
diff --git
a/tests/test_utils.py
b/tests/test_utils.py
index c2ec51efff0d949e1de779455f69cf455efe25bc..09208397dc5daa1ab2f36e17aa304a1f5b7a1989 100644
(file)
--- 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"]))
+