Return value error if string is too long

Write a function that takes a string. If it is greater than 10 characters long, throw a ValueError. Otherwise, return False.

string_too_long('tiny') == False
string_too_long('indubitably') == ValueError
import unittest


class StringLengthTest(unittest.TestCase):
    def test_string_length(self):
        self.assertRaises(ValueError, string_too_long, 'superstitious')
        self.assertEqual(string_too_long('short!'), False)