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