mirror of https://github.com/docker/docs.git
18 lines
318 B
Go
18 lines
318 B
Go
package state
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestDaemonCreate(t *testing.T) {
|
|
if None.String() != "" {
|
|
t.Fatal("None state should be empty string")
|
|
}
|
|
if Running.String() != "Running" {
|
|
t.Fatal("Running state should be 'Running'")
|
|
}
|
|
if Error.String() != "Error" {
|
|
t.Fatal("Error state should be 'Error'")
|
|
}
|
|
}
|