def test_list_filter_o_m_invalid_object_type(self):
        """
        MVC: Test Filter one to many with related object with invalid type
        """
        with self.app.test_client() as c:
            self.browser_login(c, USERNAME_ADMIN, PASSWORD_ADMIN)

            rv = c.get("/model2view/list/?_flt_0_group=aaaa", follow_redirects=True)
            self.assertEqual(rv.status_code, 200)
            if self.db.session.bind.dialect.name != "mysql":
                data = rv.data.decode("utf-8")
                self.assertIn("An error occurred", data)

        MVC: Test Filter one to many with related object with invalid type
        
tests/test_mvc.py