示例#1
0
func (s *AuthS) SetUpTest(c *C) {
	rietveld.SetDebug(true)
	rietveld.SetLogger(c)

	s.ui = &dummyUI{}
	s.loginURL = testServer.URL + "/lurl"
	s.rietveldURL = testServer.URL + "/rurl"
	s.auth = rietveld.NewAuth(s.ui, false, s.loginURL)
}
示例#2
0
func (s *RietS) SetUpTest(c *C) {
	rietveld.SetDebug(true)
	rietveld.SetLogger(c)
	s.auth = &FakeAuth{}
	s.riet = rietveld.New(testServer.URL, s.auth)
}