def test_list_literals(self):
    nums = list()
    self.assertEqual([], nums)
    nums[0:] = [1]
    self.assertEqual([1], nums)
    nums[1:] = [2]
    self.assertListEqual([1, 2], nums)
    nums.append(333)
    self.assertListEqual([1, 2, 333], nums)
def test_list_literals(self):
    nums = list()
    self.assertEqual([], nums)
    nums[0:] = [1]
    self.assertEqual([1], nums)
    nums[1:] = [2]
    self.assertListEqual([1, 2], nums)
    nums.append(333)
    self.assertListEqual([1, 2, 333], nums)