github.com/mgood/deis@v1.0.2-0.20141120022609-9a185b756e7d/deisctl/backend/fleet/unit_test.go (about) 1 package fleet 2 3 import "testing" 4 5 func TestFormatUnitName(t *testing.T) { 6 unitName, err := formatUnitName("router", 1) 7 if err != nil { 8 t.Fatal(err) 9 } 10 if unitName != "deis-router@1.service" { 11 t.Fatalf("invalid unit name: %v", unitName) 12 } 13 14 }