text: import unittest
  
  from extended_list import IntegerList
  
  
  class IntegerListTests(unittest.TestCase):
      def test_integer_list_add__when_int__expect_to_add_it(self):
          integer_list = IntegerList()
          internal_list = integer_list.add(1)
          self.assertEqual([1], internal_list)
  
      def test_integer_list_add__when_str__expect_exception(self):
          integer_list = IntegerList()
          with self.assertRaises(ValueError):
              integer_list.add('as')
  
      def test_integer_list_remove_index__when_valid_index__expect_to_remove_and_return_it(self):
          value_to_be_removed = 3
          integer_list = IntegerList(1, 2, value_to_be_removed, 4)
  
          result = integer_list.remove_index(2)
          self.assertEqual(value_to_be_removed, result)
          self.assertListEqual([1, 2, 4], integer_list.get_data())
  
      def test_integer_list_remove_index__when_invalid_negative_index__expect_exception(self):
          integer_list = IntegerList(1, 2, 3)
          index = -4
          with self.assertRaises(IndexError):
              integer_list.remove_index(index)
  
      def test_integer_list_remove_index__when_invalid_positive_index__expect_exception(self):
          integer_list = IntegerList(1, 2, 3)
          index = 3
          with self.assertRaises(IndexError):
              integer_list.remove_index(index)
  
      def test_integer_list_init__when_integers__expect_to_create_it(self):
          numbers = 1, 2, 3
          list_of_numbers = [1, 2, 3]
          integer_list = IntegerList(numbers)
          self.assertEqual(list_of_numbers, integer_list.get_data())
  
  
  
      def test_integer_list_init__when_not_only_integers__expect_exception(self):
          with self.assertRaises(Exception):
              IntegerList(1, 2, 'as')
  
      def test_integer_list_get__when_valid_index__expect_to_return_it(self):
          integer_list = IntegerList(1, 2, 3, 4)
          actual = integer_list.get(3)
          self.assertEqual(4, actual)
  
  
      def test_integer_list_get__when_invalid_negative_index__expect_exception(self):
          integer_list = IntegerList(1, 2, 3, 4)
          with self.assertRaises(IndexError):
              integer_list.get(-5)
  
  
      def test_integer_list_get__when_invalid_positive_index__expect_exception(self):
          integer_list = IntegerList(1, 2, 3, 4)
          with self.assertRaises(IndexError):
              integer_list.get(4)
  
      def test_integer_list_insert__when_valid_index_and_value__expect_to_insert_it(self):
          integer_list = IntegerList(1, 2, 3, 5)
          integer_list.insert(3, 4)
          self.assertEqual([1, 2, 3, 4, 5], integer_list.get_data())
  
      def test_integer_list_insert__when_invalid_negative_index__expect_exception(self):
          integer_list = IntegerList(1, 2, 3, 5)
          with self.assertRaises(IndexError):
              integer_list.insert(-13, 4)
  
      def test_integer_list_insert__when_invalid_positive_index__expect_exception(self):
          integer_list = IntegerList(1, 2, 3)
          with self.assertRaises(IndexError):
              integer_list.insert(4, 4)
  
      def test_integer_list_insert__when_value_is_str__expect_exception(self):
          integer_list = IntegerList(1, 2, 3)
          with self.assertRaises(IndexError):
              integer_list.insert(1, "I am string")
  
      def test_integer_list_get_biggest__expect_to_return_the_biggest(self):
          biggest = 17
          integer_list = IntegerList(1, 2, biggest, 3, 4)
          actual = integer_list.get_biggest()
          self.assertEqual(biggest, actual)
  
      def test_integer_list_get_index__when_value_in_list__expect_to_return_the_index(self):
          integer_list = IntegerList(1, 2, 3, 4)
          actual = integer_list.get_index(2)
          self.assertEqual(1, actual)
  
      def test_integer_list_get_index__when_value_not_in_list__expect_exception(self):
          integer_list = IntegerList(1, 2, 3, 4)
          with self.assertRaises(IndexError):
              integer_list.get_index(30)
  
  
  
  if __name__ == '__main__':
      unittest.main()
  