         { name: 'multiSamelEnum', label: { de: 'multiSamelEnum' }, type: { name: 'set', elementType: { name: 'lenum', values: lvalues } }, attributeConstraint: 'SameForAll', isRequired: false, isSearchable: false }
       ]
 
-    deleteProduct = (product) =>
-      deferred = Q.defer()
-      data =
-        id: product.id
-        version: product.version
-        actions: [
-          action: 'unpublish'
-        ]
-      @rest.POST "/products/#{product.id}", JSON.stringify(data), (error, response, body) =>
-        if response.statusCode is 200
-          product.version = body.version
-        @rest.DELETE "/products/#{product.id}?version=#{product.version}", (error, response, body) ->
-          deferred.resolve response.statusCode
-      deferred.promise
-
-    deleteProductType = (productType) =>
-      deferred = Q.defer()
-      @rest.DELETE "/product-types/#{productType.id}?version=#{productType.version}", (error, response, body) ->
-        deferred.resolve response.statusCode
-      deferred.promise
-
-    @rest.GET '/products?staged=true', (error, response, body) =>
-      expect(response.statusCode).toBe 200
-      productDeletes = []
-      typesDeletes = []
-      for product in body.results
-        productDeletes.push deleteProduct(product)
-      @rest.GET '/product-types?limit=0', (error, response, body) =>
-        expect(response.statusCode).toBe 200
-        for productType in body.results
-          typesDeletes.push deleteProductType(productType)
-        Q.all(productDeletes).then (statusCodes) =>
-          Q.all(typesDeletes).then (statusCodes) =>
-            @rest.POST '/product-types', JSON.stringify(@productType), (error, response, body) =>
-              expect(response.statusCode).toBe 201
-              @productType = body
-              channel =
-                key: 'retailerA'
-                roles: [ 'InventorySupply' ]
-              @rest.POST '/channels', JSON.stringify(channel), (error, response, body) ->
-                done()
-          .fail (msg) ->
-            expect(true).toBe false
-        .fail (msg) ->
-          expect(true).toBe false
+    TestHelpers.setup @client, @productType, undefined, done
 
   describe '#import', ->
     it 'should import a simple product', (done) ->

_ = require 'underscore'
Import = require '../../lib/import'
Config = require '../../config'

jasmine.getEnv().defaultTimeoutInterval = 30000


      @importer.import csv, (res) ->
        expect(res.status).toBe true
        expect(res.message).toBe '[row 2] New product created.'
      done()

  xdescribe '#import', ->
    it 'should import a product with prices', (done) ->
      csv =
        """
