def test_bad_02(self): data = [1, 2, 3, 4] num = None expect = [1, 2, 3, 4] output = utility.offset(data, num) self.assertListEqual(expect, output)
def test_04(self): data = [0, 1, 2, 3, 4, 5] num = -2 expect = [4, 5] output = utility.offset(data, num) self.assertListEqual(expect, output)
def test_05(self): data = [] num = 20 expect = [] output = utility.offset(data, num) self.assertListEqual(expect, output)