def test_auth_authorization_browser(self):
        """
        REST Api: Test auth with browser login
        """
        client = self.app.test_client()
        rv = self.browser_login(client, USERNAME_ADMIN, PASSWORD_ADMIN)
        with model1_data(self.appbuilder.session, 1) as models:
            model_id = models[0].id

            # Test access with browser login
            uri = f"api/v1/model1browserlogin/{model_id}"
            rv = client.get(uri)
            self.assertEqual(rv.status_code, 200)
            # Test unauthorized access with browser login
            uri = "api/v1/model1api/1"
            rv = client.get(uri)
            self.assertEqual(rv.status_code, 401)
            # Test access without cookie or JWT
            rv = self.browser_logout(client)
            # Test access with browser login
            uri = "api/v1/model1browserlogin/1"
            rv = client.get(uri)
            self.assertEqual(rv.status_code, 401)
            # Test access with JWT but without cookie
            token = self.login(client, USERNAME_ADMIN, PASSWORD_ADMIN)
            uri = f"api/v1/model1browserlogin/{model_id}"
            rv = self.auth_client_get(client, token, uri)
            self.assertEqual(rv.status_code, 200)

        REST Api: Test auth with browser login
        
tests/test_api.py