accountService softlayer.SoftLayer_Account_Service err error ) BeforeEach(func() { username = os.Getenv("SL_USERNAME") Expect(username).ToNot(Equal("")) apiKey = os.Getenv("SL_API_KEY") Expect(apiKey).ToNot(Equal("")) fakeClient = slclientfakes.NewFakeSoftLayerClient(username, apiKey) Expect(fakeClient).ToNot(BeNil()) accountService, err = fakeClient.GetSoftLayer_Account_Service() Expect(err).ToNot(HaveOccurred()) Expect(accountService).ToNot(BeNil()) }) Context("#GetName", func() { It("returns the name for the service", func() { name := accountService.GetName() Expect(name).To(Equal("SoftLayer_Account")) }) }) Context("#GetAccountStatus", func() { BeforeEach(func() { fakeClient.FakeHttpClient.DoRawHttpRequestResponse, err = testhelpers.ReadJsonTestFixtures("services", "SoftLayer_Account_Service_getAccountStatus.json") Expect(err).ToNot(HaveOccurred())