b85fd873930c51beaba187673f1548eb56e7f38a,tensorboard/plugins/audio/audio_plugin_test.py,AudioPluginTest,testOldStyleAudioRoute,#AudioPluginTest#,152

Before Change


        self.assertEqual("audio/wav", entry["contentType"])
        self.assertEqual("", entry["label"])
        self.assertEqual(1, entry["step"])
        parsed_query = urllib.parse.parse_qs(entry["query"])
        self.assertListEqual(["foo"], parsed_query["run"])
        self.assertListEqual(["baz/audio/0"], parsed_query["tag"])
        self.assertListEqual(["0"], parsed_query["sample"])
        self.assertListEqual(["1"], parsed_query["index"])

After Change


        self.assertEqual("audio/wav", entry["contentType"])
        self.assertEqual("", entry["label"])
        self.assertEqual(1, entry["step"])
        urllib.parse.parse_qs(entry["query"])  // should parse

    def testNewStyleAudioRoute(self):
        Tests that the /audio routes returns correct new-style data.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/tensorboard
Commit Name: b85fd873930c51beaba187673f1548eb56e7f38a
Time: 2020-04-16
Author: wchargin@gmail.com
File Name: tensorboard/plugins/audio/audio_plugin_test.py
Class Name: AudioPluginTest
Method Name: testOldStyleAudioRoute


Project Name: tensorflow/tensorboard
Commit Name: b85fd873930c51beaba187673f1548eb56e7f38a
Time: 2020-04-16
Author: wchargin@gmail.com
File Name: tensorboard/plugins/audio/audio_plugin_test.py
Class Name: AudioPluginTest
Method Name: testNewStyleAudioRoute


Project Name: home-assistant/home-assistant
Commit Name: 931f7e86152aef707fbd57ffdefe57ee39293151
Time: 2015-12-12
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/http.py
Class Name: RequestHandler
Method Name: _handle_request