'Test the _create_transport_hosts method when hostname is passed.'

def test_create_transport_hosts_single(self):

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