func TestArtistDatabase(t *testing.T) {
	DB = new(SqliteBackend)
	DB.DSN("~/.config/wavepipe/wavepipe.db")
	if err := DB.Open(); err != nil {
		t.Fatalf("Could not open database connection: %s", err.Error())
	}
	defer DB.Close()
	if err := artist.Save(); err != nil {
		t.Fatalf("Could not save artist: %s", err.Error())
	}
	if err := artist.Load(); err != nil {
		t.Fatalf("Could not load artist: %s", err.Error())
	}
	if err := artist.Delete(); err != nil {
		t.Fatalf("Could not delete artist: %s", err.Error())
	}
}
TestArtistDatabase verifies that an Artist can be saved and loaded from the database
package data
import (
	"testing"
)
var artist = Artist{
	Title: "TestArtist",
}