def test_int_to_roman_out_of_range(self):
     with self.assertRaises(ValueError):
         int_to_roman(4000)
 def test_int_to_roman_non_integer(self):
     with self.assertRaises(TypeError):
         int_to_roman('A')
 def test_int_to_roman(self):
     for key, value in self.tokens.items():
         self.assertEqual(int_to_roman(value), key)
 def test_int_to_roman_out_of_range(self):
     with self.assertRaises(ValueError):
         int_to_roman(4000)
 def test_int_to_roman_non_integer(self):
     with self.assertRaises(TypeError):
         int_to_roman('A')
 def test_int_to_roman(self):
     for key, value in self.tokens.items():
         self.assertEqual(int_to_roman(value), key)