def _assert_product_match(self, req, handler): self.assertIs(ProductModule(self.global_env), handler) self.assertEqual(self.expectedPrefix, req.args['productid'], "Unexpected product prefix") self.assertEqual(self.expectedPathInfo, req.args['pathinfo'], "Unexpected sub path")