github.com/axw/juju@v0.0.0-20161005053422-4bd6544d08d4/provider/azure/internal/azureauth/utils_test.go (about)

     1  // Copyright 2016 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package azureauth_test
     5  
     6  import (
     7  	"github.com/juju/testing"
     8  	gc "gopkg.in/check.v1"
     9  
    10  	"github.com/juju/juju/provider/azure/internal/azureauth"
    11  )
    12  
    13  type TokenResourceSuite struct {
    14  	testing.IsolationSuite
    15  }
    16  
    17  var _ = gc.Suite(&TokenResourceSuite{})
    18  
    19  func (s *TokenResourceSuite) TestTokenResource(c *gc.C) {
    20  	out := azureauth.TokenResource("https://graph.windows.net")
    21  	c.Assert(out, gc.Equals, "https://graph.windows.net/")
    22  	out = azureauth.TokenResource("https://graph.windows.net/")
    23  	c.Assert(out, gc.Equals, "https://graph.windows.net/")
    24  }