-{ daisy
+{ async
   expect
   request
   generateRandomEmail

            expect(err).to.not.exist
            expect(res.statusCode).to.be.equal 400
            expect(JSON.parse body).to.be.deep.equal { error : apiErrors.notGroupMember }
            queue.next()

        -> done()

      ]

      daisy queue


  it 'should send HTTP and be able to login user with valid request', (done) ->


      queue = [

        (next) ->
          # making a create user and create ssoToken request for that user
          createUserAndSsoToken apiToken.code, (data) ->
            { username, token } = data
            next()

        (next) ->
          # fetching account
          JAccount.one { 'profile.nickname' : username }, (err, account_) ->
            expect(err).to.not.exist
            account = account_
            next()

        (next) ->
          # leaving create user from api token group
          client = { connection : { delegate : account } }
          account.leaveFromAllGroups client, (err) ->
            expect(err).to.not.exist
            next()

        (next) ->
          # trying to use sso token without being a member of the group
          ssoTokenLoginRequestParams = generateSsoTokenLoginRequestParams
            qs  : { token }
