'Test the _create_transport_hosts method when both broker_hosts
and hostname/port are passed.'

def test_create_transport_hosts_both(self):

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