func (s *ResourcePersistenceSuite) SetUpTest(c *gc.C) { s.IsolationSuite.SetUpTest(c) s.stub = &testing.Stub{} s.base = statetest.NewStubPersistence(s.stub) s.base.ReturnApplicationExistsOps = []txn.Op{{ C: "application", Id: "a-application", Assert: txn.DocExists, }} }
func (s *StagedResourceSuite) SetUpTest(c *gc.C) { s.IsolationSuite.SetUpTest(c) s.stub = &testing.Stub{} s.base = statetest.NewStubPersistence(s.stub) s.base.ReturnServiceExistsOps = []txn.Op{{ C: "service", Id: "a-service", Assert: txn.DocExists, }} }