Files
docker-cli/components/engine/api_unit_test.go
Tianon Gravi 4af17f4fed rename file to remove testing flags from docker binary
Upstream-commit: 66beafa9f3ee72c26773158c7102cb727613ac65
Component: engine
2013-11-19 12:41:29 -08:00

20 lines
344 B
Go

package docker
import (
"testing"
)
func TestJsonContentType(t *testing.T) {
if !matchesContentType("application/json", "application/json") {
t.Fail()
}
if !matchesContentType("application/json; charset=utf-8", "application/json") {
t.Fail()
}
if matchesContentType("dockerapplication/json", "application/json") {
t.Fail()
}
}