'Test List objects.'

def testTypeInfoListObjects(self):

    a = type_info.List(type_info.Integer())
    self.assertRaises(type_info.TypeValueError, a.Validate, 1)
    self.assertRaises(type_info.TypeValueError, a.Validate, 'test')
    self.assertRaises(type_info.TypeValueError, a.Validate, None)
    self.assertRaises(type_info.TypeValueError, a.Validate, ['test'])
    self.assertRaises(type_info.TypeValueError, a.Validate, [rdf_paths.PathSpec()])
    a.Validate([1, 2, 3])
