Example #1
0
 def test_fill_var8(self):
     exist = None
     input = ""
     expected = ""
     self.assertEqual(expected, fill_var(exist, input))
Example #2
0
 def test_fill_var7(self):
     exist = ""
     input = 5
     expected = 5
     self.assertEqual(expected, fill_var(exist, input))
Example #3
0
 def test_fill_var6(self):
     exist = []
     input = 5
     expected = [5]
     self.assertEqual(expected, fill_var(exist, input))
Example #4
0
 def test_fill_var4(self):
     exist = [1, 2]
     input = [5, 6]
     expected = [1, 2, [5, 6]]
     self.assertEqual(expected, fill_var(exist, input))
Example #5
0
 def test_fill_var3(self):
     exist = {1: 2, 3: 5}
     input = 5
     expected = [{1: 2, 3: 5}, 5]
     self.assertEqual(expected, fill_var(exist, input))
Example #6
0
 def test_fill_var2(self):
     exist = [1, 2]
     input = 5
     expected = [1, 2, 5]
     self.assertEqual(expected, fill_var(exist, input))