'Test handling of protobuf repeated fields.'

def testRepeatedFields(self):

    sample = rdf_client.Interface()
    sample.ip4_addresses.Append('127.0.0.1')
    self.assertEqual(sample.ip4_addresses[0], '127.0.0.1')
    self.assertRaises(type_info.TypeValueError, sample.addresses.Append, 2)
    sample.addresses.Append(human_readable='127.0.0.1')
    self.assertEqual(sample.addresses[0].human_readable, '127.0.0.1')
    self.assertEqual(len(sample.addresses), 1)
