def test_fill_var8(self): exist = None input = "" expected = "" self.assertEqual(expected, fill_var(exist, input))
def test_fill_var7(self): exist = "" input = 5 expected = 5 self.assertEqual(expected, fill_var(exist, input))
def test_fill_var6(self): exist = [] input = 5 expected = [5] self.assertEqual(expected, fill_var(exist, input))
def test_fill_var4(self): exist = [1, 2] input = [5, 6] expected = [1, 2, [5, 6]] self.assertEqual(expected, fill_var(exist, input))
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))
def test_fill_var2(self): exist = [1, 2] input = 5 expected = [1, 2, 5] self.assertEqual(expected, fill_var(exist, input))