'Test the type info objects behave as expected.'

def testTypeInfoStringObjects(self):

    a = type_info.String()
    self.assertRaises(type_info.TypeValueError, a.Validate, 1)
    self.assertRaises(type_info.TypeValueError, a.Validate, None)
    a.Validate('test')
    a.Validate(u'test')
    a.Validate(u'/test-\xce\xf1\u94c1\u7f51\xe5\u0163\xee[\xf6\xf1\xe5\u013c(\xee\u017e\xe5\u0163\xee\u1edd\xf1')
