'Test that the proxy validates credentials.'

def test_setup_should_fail_if_credentials_are_invalid(self):

    self.driver.proxy.ibm_storage_info['user'] = 'invalid'
    self.assertRaises(exception.NotAuthorized, self.driver.do_setup, None)
