Codebase list golang-github-jlaffaye-ftp / 8c443cc4-efb8-4745-a8e9-4aa131d148be/main status_test.go
8c443cc4-efb8-4745-a8e9-4aa131d148be/main

Tree @8c443cc4-efb8-4745-a8e9-4aa131d148be/main (Download .tar.gz)

status_test.go @8c443cc4-efb8-4745-a8e9-4aa131d148be/mainraw · history · blame

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))
}