github.com/cloudbase/juju-core@v0.0.0-20140504232958-a7271ac7912f/state/api/export_test.go (about)

     1  // Copyright 2012, 2013 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package api
     5  
     6  // SetServerRoot allows changing the URL to the internal API server
     7  // that AddLocalCharm uses in order to test NotImplementedError.
     8  func SetServerRoot(c *Client, root string) {
     9  	c.st.serverRoot = root
    10  }