xmpp/sasl_test.go
changeset 143 62166e57800e
parent 142 0ff033eed887
equal deleted inserted replaced
142:0ff033eed887 143:62166e57800e
       
     1 package xmpp
       
     2 
       
     3 import (
       
     4 	"testing"
       
     5 )
       
     6 
       
     7 func TestSaslDigest(t *testing.T) {
       
     8 	// These values are from RFC2831, section 4.
       
     9 	obs := saslDigestResponse("chris", "elwood.innosoft.com",
       
    10 		"secret", "OA6MG9tEQGm2hh", "OA6MHXh6VqTrRk",
       
    11 		"AUTHENTICATE", "imap/elwood.innosoft.com",
       
    12 		"00000001")
       
    13 	exp := "d388dad90d4bbd760a152321f2143af7"
       
    14 	assertEquals(t, exp, obs)
       
    15 }