mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
18 lines
348 B
Go
18 lines
348 B
Go
|
package upnp
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestGetTechnicolorRootURL(t *testing.T) {
|
||
|
r, _ := os.Open("testdata/technicolor.xml")
|
||
|
_, action, err := getServiceURLReader("http://localhost:1234/", r)
|
||
|
if err != nil {
|
||
|
t.Fatal(err)
|
||
|
}
|
||
|
if action != "urn:schemas-upnp-org:service:WANPPPConnection:1" {
|
||
|
t.Error("Unexpected action", action)
|
||
|
}
|
||
|
}
|