// Copyright 2018 Frédéric Guillot. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. // +build integration package tests import ( "bytes" "io/ioutil" "strings" "testing" ) func TestExport(t *testing.T) { client := createClient(t) output, err := client.Export() if err != nil { t.Fatal(err) } if !strings.HasPrefix(string(output), " ` b := bytes.NewReader([]byte(data)) err := client.Import(ioutil.NopCloser(b)) if err != nil { t.Fatal(err) } }