def test_padNonEmptyList(self):
        """
        A list which already has some items has the padding value added after
        those items.
        """
        padded = util.padTo(3, [1, 2], "z")
        self.assertEqual([1, 2, "z"], padded)

        A list which already has some items has the padding value added after
        those items.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/test/test_util.py