def test_max_length(self):
    self.type_instance = types.String(max_length=5)
    self.assertInvalid('123456')
    self.assertConvertedValue('12345', '12345')
def test_max_length(self):
    self.type_instance = types.String(max_length=5)
    self.assertInvalid('123456')
    self.assertConvertedValue('12345', '12345')