def test_first(self): """first should always return first item""" vals = [3, 4, 2] self.assertEqual(first(vals), 3) vals.reverse() self.assertEqual(first(vals), 2)
def test_first(self): """first should always return first item""" vals = [3, 4, 2] self.assertEqual(first(vals), 3) vals.reverse() self.assertEqual(first(vals), 2)