2023-05-12 17:26:53 +00:00
|
|
|
package debian
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2023-05-23 13:20:48 +00:00
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
|
|
|
|
"code.dumpstack.io/tools/out-of-tree/distro"
|
2023-05-12 17:26:53 +00:00
|
|
|
)
|
|
|
|
|
2023-05-24 09:12:33 +00:00
|
|
|
func TestDebian(t *testing.T) {
|
|
|
|
assert := assert.New(t)
|
|
|
|
|
|
|
|
u := Debian{release: Wheezy}
|
|
|
|
|
|
|
|
assert.True(u.Equal(distro.Distro{Release: "wheezy", ID: distro.Debian}))
|
|
|
|
|
|
|
|
assert.NotEmpty(u.Packages())
|
|
|
|
}
|