ftp/status_test.go
2020-07-08 08:23:44 +02:00

13 lines
259 B
Go

package ftp
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestStatusText(t *testing.T) {
assert.Equal(t, "Unknown status code: 0", StatusText(0))
assert.Equal(t, "Invalid username or password.", StatusText(StatusInvalidCredentials))
}