def test_happy_path(self, ctx, mock_member_repository: MagicMock,
                        member_manager: MemberManager):
        # When...
        member_manager.delete(ctx, TEST_USERNAME)

        # Expect...
        mock_member_repository.delete_member.assert_called_once_with(
            ctx, TEST_USERNAME)
    def test_not_found(self, ctx, mock_member_repository: MagicMock,
                       member_manager: MemberManager):
        # Given...
        mock_member_repository.delete_member = MagicMock(
            side_effect=MemberNotFoundError)

        # When...
        with raises(MemberNotFoundError):
            member_manager.delete(ctx, TEST_USERNAME)