338117f08b95ddc7d4b0a7d0322a42084d2defe8,test/test_api_join.py,ApiJoinTest,test_join_returns_activity_with_owner_attachment,#ApiJoinTest#,288

Before Change


        response = api.on_join(self.activity_for_join())
        attachments = response[1]["object"]["attachments"]

        found_keys = set()
        for attachment in attachments:
            found_keys.add(attachment["objectType"])

        self.assertTrue("owner" in found_keys)

    def test_join_returns_activity_with_empty_acl_attachment(self):
        response = api.on_join(self.activity_for_join())

After Change


        response = api.on_join(self.activity_for_join())
        attachments = response[1]["object"]["attachments"]
        owners = self.get_attachment_for_key(attachments, "owner")
        self.assertIsNotNone(owners)

    def test_join_returns_activity_with_users_attachment(self):
        response = api.on_join(self.activity_for_join())
        attachments = response[1]["object"]["attachments"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: thenetcircle/dino
Commit Name: 338117f08b95ddc7d4b0a7d0322a42084d2defe8
Time: 2016-09-27
Author: oscar@thenetcircle.com
File Name: test/test_api_join.py
Class Name: ApiJoinTest
Method Name: test_join_returns_activity_with_owner_attachment


Project Name: thenetcircle/dino
Commit Name: 338117f08b95ddc7d4b0a7d0322a42084d2defe8
Time: 2016-09-27
Author: oscar@thenetcircle.com
File Name: test/test_api_join.py
Class Name: ApiJoinTest
Method Name: test_join_returns_activity_with_history_attachment


Project Name: thenetcircle/dino
Commit Name: 338117f08b95ddc7d4b0a7d0322a42084d2defe8
Time: 2016-09-27
Author: oscar@thenetcircle.com
File Name: test/test_api_join.py
Class Name: ApiJoinTest
Method Name: test_join_returns_activity_with_acl_attachment