AssertUserNotExist asserts that the user does not exist.
(id uint)
| 185 | |
| 186 | // AssertUserNotExist asserts that the user does not exist. |
| 187 | func (d *Database) AssertUserNotExist(id uint) { |
| 188 | if user, err := d.GetUserByID(id); assert.NoError(d.t, err) { |
| 189 | assert.True(d.t, user == nil, "user %d must not exist", id) |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | // AssertUsernameNotExist asserts that the user does not exist. |
| 194 | func (d *Database) AssertUsernameNotExist(name string) { |