'Test the _create_transport_hosts method
when broker_hosts is set.'

def test_create_transport_hosts_multiple(self):

    brokers = '127.0.0.1:5672,127.0.0.2:5671'
    thosts = self.commands._create_transport_hosts('guest', 'devstack', broker_hosts=brokers)
    self.assertEqual(2, len(thosts))
    self.assertEqual('127.0.0.1', thosts[0].hostname)
    self.assertEqual(5672, thosts[0].port)
    self.assertEqual('127.0.0.2', thosts[1].hostname)
    self.assertEqual(5671, thosts[1].port)
