f13f59a3b9951c8817a9db61acf3e8a6a9da8d09,lib/python/http_test.py,RespondTest,testJson_getsAutoSerialized,#RespondTest#,135

Before Change


        fall_of_hyperion_canto1_stanza1.encode("utf-8"))

  def testJson_getsAutoSerialized(self):
    hand = _create_mocked_handler()
    http.Respond(hand, [1, 2, 3], "application/json")
    hand.wfile.write.assert_called_with(b"[1, 2, 3]")

  def testExpires_setsCruiseControl(self):
    hand = _create_mocked_handler()

After Change


                     fall_of_hyperion_canto1_stanza1.encode("utf-8"))

  def testJson_getsAutoSerialized(self):
    q = wrappers.Request(wtest.EnvironBuilder().get_environ())
    r = http.Respond(q, [1, 2, 3], "application/json")
    self.assertEqual(r.response[0], b"[1, 2, 3]")

  def testExpires_setsCruiseControl(self):
    q = wrappers.Request(wtest.EnvironBuilder().get_environ())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 11

Instances


Project Name: tensorflow/tensorboard
Commit Name: f13f59a3b9951c8817a9db61acf3e8a6a9da8d09
Time: 2017-01-21
Author: dandelion@google.com
File Name: lib/python/http_test.py
Class Name: RespondTest
Method Name: testJson_getsAutoSerialized


Project Name: tensorflow/tensorboard
Commit Name: f13f59a3b9951c8817a9db61acf3e8a6a9da8d09
Time: 2017-01-21
Author: dandelion@google.com
File Name: lib/python/http_test.py
Class Name: RespondTest
Method Name: testExpires_setsCruiseControl


Project Name: tensorflow/tensorboard
Commit Name: f13f59a3b9951c8817a9db61acf3e8a6a9da8d09
Time: 2017-01-21
Author: dandelion@google.com
File Name: lib/python/http_test.py
Class Name: RespondTest
Method Name: testResponseCharsetTranscoding


Project Name: tensorflow/tensorboard
Commit Name: f13f59a3b9951c8817a9db61acf3e8a6a9da8d09
Time: 2017-01-21
Author: dandelion@google.com
File Name: lib/python/http_test.py
Class Name: RespondTest
Method Name: testPlainText_appendsUtf8ToContentType


Project Name: tensorflow/tensorboard
Commit Name: f13f59a3b9951c8817a9db61acf3e8a6a9da8d09
Time: 2017-01-21
Author: dandelion@google.com
File Name: lib/python/http_test.py
Class Name: RespondTest
Method Name: testHelloWorld


Project Name: tensorflow/tensorboard
Commit Name: f13f59a3b9951c8817a9db61acf3e8a6a9da8d09
Time: 2017-01-21
Author: dandelion@google.com
File Name: lib/python/http_test.py
Class Name: RespondTest
Method Name: testContentLength_isInBytes


Project Name: tensorflow/tensorboard
Commit Name: f13f59a3b9951c8817a9db61acf3e8a6a9da8d09
Time: 2017-01-21
Author: dandelion@google.com
File Name: lib/python/http_test.py
Class Name: RespondTest
Method Name: testHeadRequest_doesNotWrite