e295ddbb5b69ea7d142ed1bae575a6881f7f5d19,tests/test_experiments/test_views.py,TestExperimentOutputsTreeViewV1,test_get,#TestExperimentOutputsTreeViewV1#,1908

Before Change


        resp = self.auth_client.get(self.url)
        assert resp.status_code == status.HTTP_200_OK

        data = [i for i in resp._iterator]  // pylint:disable=protected-access
        data = [d for d in data[0].decode("utf-8").split("\n") if d]
        assert len(data) == len(self.logs)
        assert data == self.logs

    def test_post_logs(self):

After Change


        self.assert_same_content(resp.data["files"], self.top_level["files"])
        self.assert_same_content(resp.data["dirs"], self.top_level["dirs"])

        resp = self.auth_client.get(self.url_second_level)
        assert resp.status_code == status.HTTP_200_OK
        self.assert_same_content(resp.data["files"], self.second_level["files"])
        self.assert_same_content(resp.data["dirs"], self.second_level["dirs"])

        resp = self.auth_client.get(self.url_second_level2)
        assert resp.status_code == status.HTTP_200_OK
        self.assert_same_content(resp.data["files"], self.second_level["files"])
        self.assert_same_content(resp.data["dirs"], self.second_level["dirs"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 20

Instances


Project Name: polyaxon/polyaxon
Commit Name: e295ddbb5b69ea7d142ed1bae575a6881f7f5d19
Time: 2018-11-02
Author: mouradmourafiq@gmail.com
File Name: tests/test_experiments/test_views.py
Class Name: TestExperimentOutputsTreeViewV1
Method Name: test_get


Project Name: polyaxon/polyaxon
Commit Name: 79bdfced13976388ff3542a1081c540761e0a006
Time: 2018-11-02
Author: mouradmourafiq@gmail.com
File Name: tests/test_experiments/test_views.py
Class Name: TestExperimentOutputsTreeViewV1
Method Name: test_get


Project Name: polyaxon/polyaxon
Commit Name: 336dd0ec21ff45d8b74a8f4e9dbdc0c091eee6b2
Time: 2018-11-02
Author: mouradmourafiq@gmail.com
File Name: tests/test_experiments/test_views.py
Class Name: TestExperimentOutputsTreeViewV1
Method Name: test_get


Project Name: polyaxon/polyaxon
Commit Name: e295ddbb5b69ea7d142ed1bae575a6881f7f5d19
Time: 2018-11-02
Author: mouradmourafiq@gmail.com
File Name: tests/test_experiments/test_views.py
Class Name: TestExperimentOutputsTreeViewV1
Method Name: test_get