Reverse list

Write a function reverse_list that reverses a list. Example

reverse_list([1, 2, 3, 4]) == [4, 3, 2, 1]
import unittest


class ReverseListTestCase(unittest.TestCase):
    def test_reverse_list(self):
        self.assertEqual(reverse_list([4, 3, 2, 1]), [1, 2, 3, 4])

    def test_reverse_list_with_empty_list(self):
        self.assertEqual(reverse_list([]), [])