def test_allow_origins(self):
        assert self.route.allow_origins().route['response_headers']['Access-Control-Allow-Origin'] == '*'
        test_headers = self.route.allow_origins('google.com', methods=('GET', 'POST')).route['response_headers']
        assert test_headers['Access-Control-Allow-Origin'] == 'google.com'
        assert test_headers['Access-Control-Allow-Methods'] == 'GET, POST'
: Write the style to the file
dataset/ETHPy150Open timothycrosley/hug/tests/test_routing.py/TestHTTPRouter.test_allow_origins--crossover with--dataset/ETHPy150Open nasa/mplStyle/mplStyle/MplStyleManager.py/MplStyleManager._writeSubStyle