예제 #1
0
파일: test_doloop.py 프로젝트: Yelp/doloop
 def test_sequence(self):
     self.assertEqual(_to_list(x for x in 'cats'), ['c', 'a', 't', 's'])
예제 #2
0
파일: test_doloop.py 프로젝트: Yelp/doloop
 def test_list(self):
     self.assertEqual(_to_list([1, 2, 3]), [1, 2, 3])
예제 #3
0
파일: test_doloop.py 프로젝트: Yelp/doloop
 def test_tuple(self):
     self.assertEqual(_to_list(('one', 'two')), ['one', 'two'])
예제 #4
0
파일: test_doloop.py 프로젝트: Yelp/doloop
 def test_str(self):
     self.assertEqual(_to_list('efgh'), ['efgh'])
예제 #5
0
파일: test_doloop.py 프로젝트: Yelp/doloop
 def test_int(self):
     self.assertEqual(_to_list(1), [1])
예제 #6
0
파일: test_doloop.py 프로젝트: Yelp/doloop
 def test_None(self):
     self.assertEqual(_to_list(None), [None])
예제 #7
0
파일: test_doloop.py 프로젝트: Yelp/doloop
 def test_bytes(self):
     self.assertEqual(_to_list(b'abcd'), [b'abcd'])
예제 #8
0
 def test_tuple(self):
     self.assertEqual(_to_list(('one', 'two')), ['one', 'two'])
예제 #9
0
 def test_sequence(self):
     self.assertEqual(_to_list(x for x in 'cats'), ['c', 'a', 't', 's'])
예제 #10
0
 def test_list(self):
     self.assertEqual(_to_list([1, 2, 3]), [1, 2, 3])
예제 #11
0
 def test_int(self):
     self.assertEqual(_to_list(1), [1])
예제 #12
0
 def test_str(self):
     self.assertEqual(_to_list('efgh'), ['efgh'])
예제 #13
0
 def test_bytes(self):
     self.assertEqual(_to_list(b'abcd'), [b'abcd'])
예제 #14
0
 def test_None(self):
     self.assertEqual(_to_list(None), [None])