xmpp/stream_test.go
changeset 126 367e76b3028e
parent 11 48be1ae93fd4
child 142 0ff033eed887
equal deleted inserted replaced
125:f464f14e39a7 126:367e76b3028e
       
     1 // Copyright 2011 The Go Authors.  All rights reserved.
       
     2 // Use of this source code is governed by a BSD-style
       
     3 // license that can be found in the LICENSE file.
       
     4 
       
     5 package xmpp
       
     6 
       
     7 import (
       
     8 	"testing"
       
     9 )
       
    10 
       
    11 func TestSaslDigest(t *testing.T) {
       
    12 	// These values are from RFC2831, section 4.
       
    13 	obs := saslDigestResponse("chris", "elwood.innosoft.com",
       
    14 		"secret", "OA6MG9tEQGm2hh", "OA6MHXh6VqTrRk",
       
    15 		"AUTHENTICATE", "imap/elwood.innosoft.com",
       
    16 		"00000001")
       
    17 	exp := "d388dad90d4bbd760a152321f2143af7"
       
    18 	assertEquals(t, exp, obs)
       
    19 }