 
       ->
         # expecting second team crete request with the same slug to fail
-        expectedBody = "Sorry, Team URL '#{slug}.koding.com' is already in use"
+        expectedBody = "Sorry, Team URL '#{slug}.#{hostname}' is already in use"
         request.post createTeamRequestParams, (err, res, body) ->
           expect(err)             .to.not.exist
           expect(res.statusCode)  .to.be.equal 403

          queue.next()

      ->
        # expecting HTTP 400 using already registered username
        expectedBody = 'Errors were encountered during validation: username'
        request.post createTeamRequestParams, (err, res, body) ->
          expect(err)             .to.not.exist
          expect(res.statusCode)  .to.be.equal 400

Bongo                               = require "bongo"
koding                              = require './../bongo'
{ argv }                            = require 'optimist'
KONFIG                              = require('koding-config-manager').load "main.#{argv.c}"

{ daisy }                           = Bongo
{ expect }                          = require "chai"
{ hostname }                        = KONFIG
{ Relationship }                    = require 'jraphical'
{ TeamHandlerHelper
  generateRandomEmail
