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