1b6ab062a21bc0d6544e75a25e1726426bfd90d4,lib/tests/streamlit/delta_generator_test.py,DeltaGeneratorTextTest,test_json_string,#DeltaGeneratorTextTest#,123

Before Change


        method = unwrap(self._dg, "json")

        // Testing JSON string
        delta = protobuf.Delta()
        element = delta.new_element
        method(self._dg, element, json_string)

        self.assertEquals(json_string, element.text.body)
        self.assertEquals(protobuf.Text.JSON, element.text.format)

After Change


        // Testing JSON string
        self._dg.json(json_string)

        element = get_element(self._dg)
        self.assertEquals(json_string, element.text.body)
        self.assertEquals(protobuf.Text.JSON, element.text.format)

    def test_markdown(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: streamlit/streamlit
Commit Name: 1b6ab062a21bc0d6544e75a25e1726426bfd90d4
Time: 2019-02-14
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/delta_generator_test.py
Class Name: DeltaGeneratorTextTest
Method Name: test_json_string


Project Name: streamlit/streamlit
Commit Name: 1b6ab062a21bc0d6544e75a25e1726426bfd90d4
Time: 2019-02-14
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/delta_generator_test.py
Class Name: DeltaGeneratorTextTest
Method Name: test_generic_text


Project Name: streamlit/streamlit
Commit Name: 1b6ab062a21bc0d6544e75a25e1726426bfd90d4
Time: 2019-02-14
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/delta_generator_test.py
Class Name: DeltaGeneratorTextTest
Method Name: test_json_object


Project Name: streamlit/streamlit
Commit Name: 1b6ab062a21bc0d6544e75a25e1726426bfd90d4
Time: 2019-02-14
Author: thiagot@gmail.com
File Name: lib/tests/streamlit/delta_generator_test.py
Class Name: DeltaGeneratorTextTest
Method Name: test_markdown