ldap_test.go 354 B

1234567891011121314151617181920212223
  1. package ldap
  2. import (
  3. "testing"
  4. "github.com/remogatto/prettytest"
  5. )
  6. type testSuite struct {
  7. prettytest.Suite
  8. }
  9. func TestRunner(t *testing.T) {
  10. prettytest.Run(
  11. t,
  12. new(testSuite),
  13. )
  14. }
  15. func (t *testSuite) TestDN() {
  16. t.Equal("cn=billy,dc=foo,dc=org", DN("cn=billy"))
  17. t.Equal("cn=billy,ou=people,dc=foo,dc=org", DN("cn=billy", "ou=people"))
  18. }