'Test do_setup with http://1.2.3.4:8080.'

@mock.patch('six.moves.http_client.HTTPConnection')
def test_do_setup_positive(self, mock_http_connection):

    fake_login_response = FakeLoginResponse()
    fake_get_basic_info_response = FakeGetBasicInfoResponse()
    mock_http_connection.return_value.getresponse.side_effect = [fake_login_response, fake_get_basic_info_response, fake_login_response]
    self.driver = qnap.QnapISCSIDriver(configuration=create_configuration('admin', 'qnapadmin', 'http://1.2.3.4:8080', '1.2.3.4', 'Storage    Pool    1', True))
    self.driver.do_setup('context')
    self.assertEqual('fakeSid', self.driver.api_executor.sid)
    self.assertEqual('admin', self.driver.api_executor.username)
    self.assertEqual('qnapadmin', self.driver.api_executor.password)
    self.assertEqual('1.2.3.4', self.driver.api_executor.ip)
    self.assertEqual('8080', self.driver.api_executor.port)
    self.assertFalse(self.driver.api_executor.ssl)
