Test that root user cannot be deleted.
(self, user_manager)
| 228 | assert user.is_active is False |
| 229 | |
| 230 | def test_delete_root_user(self, user_manager): |
| 231 | """Test that root user cannot be deleted.""" |
| 232 | result = user_manager.delete_user("root") |
| 233 | assert result is False |
| 234 | |
| 235 | # Root user should still be active |
| 236 | assert user_manager.validate_user("root") is True |
| 237 | |
| 238 | def test_delete_nonexistent_user(self, user_manager): |
| 239 | """Test deleting non-existent user.""" |
nothing calls this directly
no test coverage detected