github.com/subosito/twilio@v0.0.1/call_test.go (about)

     1  package twilio
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func TestTwilioMakeCall(t *testing.T) {
     8  	w := NewTwilio(accountSid, authToken)
     9  	r, _ := w.MakeCall(from, to, CallParams{Url: callbackUrl})
    10  
    11  	if r.AccountSid != accountSid {
    12  		t.Errorf("s.AccountSid: %s != %s", r.AccountSid, accountSid)
    13  	}
    14  
    15  	if r.ApiVersion != apiVersion {
    16  		t.Errorf("s.ApiVersion: %s != %s", r.ApiVersion, apiVersion)
    17  	}
    18  }