<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Last week I added PatchClientFacadeCall to api/export_test.go which
    does the same thing:
    <a class="moz-txt-link-freetext" href="https://github.com/juju/juju/blob/master/api/export_test.go">https://github.com/juju/juju/blob/master/api/export_test.go</a><br>
    It is used in several tests, e.g. TestShareEnvironmentExistingUser<br>
    <br>
    <div class="moz-cite-prefix">On 11/09/14 22:30, Matthew Williams
      wrote:<br>
    </div>
    <blockquote
cite="mid:CANhc7kQhO-+JA88y_JesRuAmsW+LcBwyZbOq1mvp-pPmSpQZjQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Thanks Andrew,
        <div><br>
        </div>
        <div>I was almost about to reimplement this myself - making use
          of it right now</div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div><br>
        </div>
        <div>Matty</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Sep 11, 2014 at 5:57 AM, Andrew
          Wilkins <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:andrew.wilkins@canonical.com" target="_blank">andrew.wilkins@canonical.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">Hi folks,
              <div><br>
              </div>
              <div>I'd like to bring a small, recent addition to
                everyone's attention:</div>
              <div>    <a moz-do-not-send="true"
href="https://github.com/juju/juju/blob/master/api/base/testing/patch.go"
                  target="_blank">https://github.com/juju/juju/blob/master/api/base/testing/patch.go</a><br>
              </div>
              <div><br>
              </div>
              <div>PatchFacadeCaller can be used (and is used now in
                several places) to avoid calling through to a real API
                server in api tests. Ideally we'd just provide mock
                FacadeCallers to begin with, but this alleviates some of
                the pain between now and when we do that across all the
                existing tests.</div>
              <div><br>
              </div>
              <div>If you're writing tests for api clients, please
                consider using PatchFacadeCaller or a mock FacadeCaller,
                so we can improve test coverage and avoid slow tests.</div>
              <div><br>
              </div>
              <div>Cheers,</div>
              <div>Andrew</div>
            </div>
            <br>
            --<br>
            Juju-dev mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
            Modify settings or unsubscribe at: <a
              moz-do-not-send="true"
              href="https://lists.ubuntu.com/mailman/listinfo/juju-dev"
              target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>