2016-05-25 19:34:36 +00:00
|
|
|
package lxc
|
|
|
|
|
|
|
|
import (
|
2016-05-25 19:34:51 +00:00
|
|
|
"testing"
|
2018-01-22 17:21:10 -08:00
|
|
|
|
|
|
|
"github.com/hashicorp/packer/packer"
|
2016-05-25 19:34:36 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestCommunicator_ImplementsCommunicator(t *testing.T) {
|
2016-05-25 19:34:51 +00:00
|
|
|
var raw interface{}
|
|
|
|
raw = &LxcAttachCommunicator{}
|
|
|
|
if _, ok := raw.(packer.Communicator); !ok {
|
|
|
|
t.Fatalf("Communicator should be a communicator")
|
|
|
|
}
|
2016-05-25 19:34:36 +00:00
|
|
|
}
|