}
func (tt *testCase) Setup(srv *Server) error {
- if err := srv.NewUser(tt.account.Login, tt.account.Name, NegatedUserString([]byte(tt.account.Password)), *tt.account.Access); err != nil {
+ if err := srv.NewUser(tt.account.Login, tt.account.Name, string(negateString([]byte(tt.account.Password))), *tt.account.Access); err != nil {
return err
}
// }
//}
-
func TestNewUser(t *testing.T) {
srv, _, _ := StartTestServer()
}
}
-
-
// equal is a utility function used only in tests that determines if transactions are equal enough
func (t Transaction) equal(otherT Transaction) bool {
t.ID = []byte{0, 0, 0, 0}