Example #1
0
 def test_string(self):
     self.assertEqual(util.makeList('hello'), ['hello'])
Example #2
0
 def test_empty_string(self):
     self.assertEqual(util.makeList(''), [''])
Example #3
0
 def test_None(self):
     self.assertEqual(util.makeList(None), [])
Example #4
0
 def test_tuple(self):
     self.assertEqual(util.makeList(('a', 'b')), ['a', 'b'])
Example #5
0
 def test_copy(self):
     input = ['a', 'b']
     output = util.makeList(input)
     input.append('c')
     self.assertEqual(output, ['a', 'b'])
Example #6
0
 def test_tuple(self):
     self.assertEqual(util.makeList(('a', 'b')), ['a', 'b'])
Example #7
0
 def test_string(self):
     self.assertEqual(util.makeList("hello"), ["hello"])
Example #8
0
 def test_None(self):
     self.assertEqual(util.makeList(None), [])
Example #9
0
 def test_string(self):
     self.assertEqual(util.makeList('hello'), ['hello'])
Example #10
0
 def test_copy(self):
     input = ["a", "b"]
     output = util.makeList(input)
     input.append("c")
     self.assertEqual(output, ["a", "b"])
Example #11
0
 def test_empty_string(self):
     self.assertEqual(util.makeList(''), [''])
Example #12
0
 def test_tuple(self):
     self.assertEqual(util.makeList(("a", "b")), ["a", "b"])
Example #13
0
 def test_list(self):
     self.assertEqual(util.makeList(["a", "b"]), ["a", "b"])
Example #14
0
 def test_unicode(self):
     self.assertEqual(util.makeList(u"\N{SNOWMAN}"), [u"\N{SNOWMAN}"])
Example #15
0
 def test_unicode(self):
     self.assertEqual(util.makeList(u'\N{SNOWMAN}'), [u'\N{SNOWMAN}'])
Example #16
0
 def test_unicode(self):
     self.assertEqual(util.makeList(u'\N{SNOWMAN}'), [u'\N{SNOWMAN}'])
Example #17
0
 def test_list(self):
     self.assertEqual(util.makeList(['a', 'b']), ['a', 'b'])
Example #18
0
 def test_list(self):
     self.assertEqual(util.makeList(['a', 'b']), ['a', 'b'])
Example #19
0
 def test_copy(self):
     input = ['a', 'b']
     output = util.makeList(input)
     input.append('c')
     self.assertEqual(output, ['a', 'b'])
Example #20
0
 def test_empty_string(self):
     self.assertEqual(util.makeList(""), [""])