Example #1
0
 def test__to_reddit_list(self):
     output = _to_reddit_list('hello')
     self.assertEqual('hello', output)
Example #2
0
 def test__to_reddit_list_with_mix(self):
     obj = self.r.get_subreddit(self.sr)
     output = _to_reddit_list([obj, 'hello'])
     self.assertEqual("{0},{1}".format(self.sr, 'hello'), output)
Example #3
0
 def test__to_reddit_list_with_object_in_list(self):
     obj = self.r.get_subreddit(self.sr)
     output = _to_reddit_list([obj])
     self.assertEqual(self.sr, output)
Example #4
0
 def test__to_reddit_list_with_object(self):
     output = _to_reddit_list(self.r.get_subreddit(self.sr))
     self.assertEqual(self.sr, output)
Example #5
0
 def test__to_reddit_list_with_big_list(self):
     output = _to_reddit_list(['hello', 'world'])
     self.assertEqual('hello,world', output)
Example #6
0
 def test__to_reddit_list_with_empty_list(self):
     output = _to_reddit_list([])
     self.assertEqual('', output)