{"action":"created","comment":{"url":"https://api.github.com/repos/druids/django-pyston/pulls/comments/94061340","pull_request_review_id":14591892,"id":94061340,"diff_hunk":"@@ -16,14 +16,46 @@ class DataProcessorsTestCase(PystonTestCase):\n     @data_provider('get_users_data')\n     def test_create_user_with_file(self, number, data):\n         data['contract'] = {\n-            'content_type': 'plain/text', 'filename': 'contract.txt',\n+            'content_type': 'text/plain',\n+            'filename': 'contract.txt',\n             'content': base64.b64encode(\n                 ('Contract of %s code: šří+áýšé' % data['email']).encode('utf-8')\n             ).decode('utf-8')\n         }\n         resp = self.post(self.USER_API_URL, data=self.serialize(data))\n         self.assert_valid_JSON_created_response(resp)\n-        self.assert_not_equal(self.deserialize(resp)['contract'], None)\n+        data = self.deserialize(resp)\n+        self.assert_not_equal(data['contract'], None)\n+        self.assert_in('filename', data['contract'])\n+        self.assert_in('url', data['contract'])\n+        self.assert_equal(data['contract']['content_type'], 'text/plain')","path":"example/dj/apps/app/tests/data_processors.py","position":18,"original_position":18,"commit_id":"9cf9aa9778b6d795ce0ee92bc65eda19aca3f577","original_commit_id":"9cf9aa9778b6d795ce0ee92bc65eda19aca3f577","user":{"login":"matllubos","id":424409,"avatar_url":"https://avatars.githubusercontent.com/u/424409?v=3","gravatar_id":"","url":"https://api.github.com/users/matllubos","html_url":"https://github.com/matllubos","followers_url":"https://api.github.com/users/matllubos/followers","following_url":"https://api.github.com/users/matllubos/following{/other_user}","gists_url":"https://api.github.com/users/matllubos/gists{/gist_id}","starred_url":"https://api.github.com/users/matllubos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matllubos/subscriptions","organizations_url":"https://api.github.com/users/matllubos/orgs","repos_url":"https://api.github.com/users/matllubos/repos","events_url":"https://api.github.com/users/matllubos/events{/privacy}","received_events_url":"https://api.github.com/users/matllubos/received_events","type":"User","site_admin":false},"body":"@LukasRychtecky soubory se vrací v dict formátu společně s filename, url a content_typu","created_at":"2016-12-28T18:14:15Z","updated_at":"2016-12-28T18:46:59Z","html_url":"https://github.com/druids/django-pyston/pull/18#discussion_r94061340","pull_request_url":"https://api.github.com/repos/druids/django-pyston/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/druids/django-pyston/pulls/comments/94061340"},"html":{"href":"https://github.com/druids/django-pyston/pull/18#discussion_r94061340"},"pull_request":{"href":"https://api.github.com/repos/druids/django-pyston/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/druids/django-pyston/pulls/18","id":99577300,"html_url":"https://github.com/druids/django-pyston/pull/18","diff_url":"https://github.com/druids/django-pyston/pull/18.diff","patch_url":"https://github.com/druids/django-pyston/pull/18.patch","issue_url":"https://api.github.com/repos/druids/django-pyston/issues/18","number":18,"state":"open","locked":false,"title":"Improved serializers, allow lazy serialization and improved filefield…","user":{"login":"matllubos","id":424409,"avatar_url":"https://avatars.githubusercontent.com/u/424409?v=3","gravatar_id":"","url":"https://api.github.com/users/matllubos","html_url":"https://github.com/matllubos","followers_url":"https://api.github.com/users/matllubos/followers","following_url":"https://api.github.com/users/matllubos/following{/other_user}","gists_url":"https://api.github.com/users/matllubos/gists{/gist_id}","starred_url":"https://api.github.com/users/matllubos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matllubos/subscriptions","organizations_url":"https://api.github.com/users/matllubos/orgs","repos_url":"https://api.github.com/users/matllubos/repos","events_url":"https://api.github.com/users/matllubos/events{/privacy}","received_events_url":"https://api.github.com/users/matllubos/received_events","type":"User","site_admin":false},"body":"… serialization","created_at":"2016-12-28T18:10:45Z","updated_at":"2016-12-28T18:46:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28727cf5c81175f340495e82f808fd09576554e2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/druids/django-pyston/pulls/18/commits","review_comments_url":"https://api.github.com/repos/druids/django-pyston/pulls/18/comments","review_comment_url":"https://api.github.com/repos/druids/django-pyston/pulls/comments{/number}","comments_url":"https://api.github.com/repos/druids/django-pyston/issues/18/comments","statuses_url":"https://api.github.com/repos/druids/django-pyston/statuses/9cf9aa9778b6d795ce0ee92bc65eda19aca3f577","head":{"label":"druids:NewSerializers","ref":"NewSerializers","sha":"9cf9aa9778b6d795ce0ee92bc65eda19aca3f577","user":{"login":"druids","id":16963627,"avatar_url":"https://avatars.githubusercontent.com/u/16963627?v=3","gravatar_id":"","url":"https://api.github.com/users/druids","html_url":"https://github.com/druids","followers_url":"https://api.github.com/users/druids/followers","following_url":"https://api.github.com/users/druids/following{/other_user}","gists_url":"https://api.github.com/users/druids/gists{/gist_id}","starred_url":"https://api.github.com/users/druids/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/druids/subscriptions","organizations_url":"https://api.github.com/users/druids/orgs","repos_url":"https://api.github.com/users/druids/repos","events_url":"https://api.github.com/users/druids/events{/privacy}","received_events_url":"https://api.github.com/users/druids/received_events","type":"Organization","site_admin":false},"repo":{"id":57839740,"name":"django-pyston","full_name":"druids/django-pyston","owner":{"login":"druids","id":16963627,"avatar_url":"https://avatars.githubusercontent.com/u/16963627?v=3","gravatar_id":"","url":"https://api.github.com/users/druids","html_url":"https://github.com/druids","followers_url":"https://api.github.com/users/druids/followers","following_url":"https://api.github.com/users/druids/following{/other_user}","gists_url":"https://api.github.com/users/druids/gists{/gist_id}","starred_url":"https://api.github.com/users/druids/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/druids/subscriptions","organizations_url":"https://api.github.com/users/druids/orgs","repos_url":"https://api.github.com/users/druids/repos","events_url":"https://api.github.com/users/druids/events{/privacy}","received_events_url":"https://api.github.com/users/druids/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/druids/django-pyston","description":null,"fork":false,"url":"https://api.github.com/repos/druids/django-pyston","forks_url":"https://api.github.com/repos/druids/django-pyston/forks","keys_url":"https://api.github.com/repos/druids/django-pyston/keys{/key_id}","collaborators_url":"https://api.github.com/repos/druids/django-pyston/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/druids/django-pyston/teams","hooks_url":"https://api.github.com/repos/druids/django-pyston/hooks","issue_events_url":"https://api.github.com/repos/druids/django-pyston/issues/events{/number}","events_url":"https://api.github.com/repos/druids/django-pyston/events","assignees_url":"https://api.github.com/repos/druids/django-pyston/assignees{/user}","branches_url":"https://api.github.com/repos/druids/django-pyston/branches{/branch}","tags_url":"https://api.github.com/repos/druids/django-pyston/tags","blobs_url":"https://api.github.com/repos/druids/django-pyston/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/druids/django-pyston/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/druids/django-pyston/git/refs{/sha}","trees_url":"https://api.github.com/repos/druids/django-pyston/git/trees{/sha}","statuses_url":"https://api.github.com/repos/druids/django-pyston/statuses/{sha}","languages_url":"https://api.github.com/repos/druids/django-pyston/languages","stargazers_url":"https://api.github.com/repos/druids/django-pyston/stargazers","contributors_url":"https://api.github.com/repos/druids/django-pyston/contributors","subscribers_url":"https://api.github.com/repos/druids/django-pyston/subscribers","subscription_url":"https://api.github.com/repos/druids/django-pyston/subscription","commits_url":"https://api.github.com/repos/druids/django-pyston/commits{/sha}","git_commits_url":"https://api.github.com/repos/druids/django-pyston/git/commits{/sha}","comments_url":"https://api.github.com/repos/druids/django-pyston/comments{/number}","issue_comment_url":"https://api.github.com/repos/druids/django-pyston/issues/comments{/number}","contents_url":"https://api.github.com/repos/druids/django-pyston/contents/{+path}","compare_url":"https://api.github.com/repos/druids/django-pyston/compare/{base}...{head}","merges_url":"https://api.github.com/repos/druids/django-pyston/merges","archive_url":"https://api.github.com/repos/druids/django-pyston/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/druids/django-pyston/downloads","issues_url":"https://api.github.com/repos/druids/django-pyston/issues{/number}","pulls_url":"https://api.github.com/repos/druids/django-pyston/pulls{/number}","milestones_url":"https://api.github.com/repos/druids/django-pyston/milestones{/number}","notifications_url":"https://api.github.com/repos/druids/django-pyston/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/druids/django-pyston/labels{/name}","releases_url":"https://api.github.com/repos/druids/django-pyston/releases{/id}","deployments_url":"https://api.github.com/repos/druids/django-pyston/deployments","created_at":"2016-05-01T21:24:21Z","updated_at":"2016-05-08T12:01:37Z","pushed_at":"2016-12-28T18:10:46Z","git_url":"git://github.com/druids/django-pyston.git","ssh_url":"git@github.com:druids/django-pyston.git","clone_url":"https://github.com/druids/django-pyston.git","svn_url":"https://github.com/druids/django-pyston","homepage":null,"size":431,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"druids:master","ref":"master","sha":"9a6d174eece3b244c7b271884ea6fb0ce0ff7933","user":{"login":"druids","id":16963627,"avatar_url":"https://avatars.githubusercontent.com/u/16963627?v=3","gravatar_id":"","url":"https://api.github.com/users/druids","html_url":"https://github.com/druids","followers_url":"https://api.github.com/users/druids/followers","following_url":"https://api.github.com/users/druids/following{/other_user}","gists_url":"https://api.github.com/users/druids/gists{/gist_id}","starred_url":"https://api.github.com/users/druids/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/druids/subscriptions","organizations_url":"https://api.github.com/users/druids/orgs","repos_url":"https://api.github.com/users/druids/repos","events_url":"https://api.github.com/users/druids/events{/privacy}","received_events_url":"https://api.github.com/users/druids/received_events","type":"Organization","site_admin":false},"repo":{"id":57839740,"name":"django-pyston","full_name":"druids/django-pyston","owner":{"login":"druids","id":16963627,"avatar_url":"https://avatars.githubusercontent.com/u/16963627?v=3","gravatar_id":"","url":"https://api.github.com/users/druids","html_url":"https://github.com/druids","followers_url":"https://api.github.com/users/druids/followers","following_url":"https://api.github.com/users/druids/following{/other_user}","gists_url":"https://api.github.com/users/druids/gists{/gist_id}","starred_url":"https://api.github.com/users/druids/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/druids/subscriptions","organizations_url":"https://api.github.com/users/druids/orgs","repos_url":"https://api.github.com/users/druids/repos","events_url":"https://api.github.com/users/druids/events{/privacy}","received_events_url":"https://api.github.com/users/druids/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/druids/django-pyston","description":null,"fork":false,"url":"https://api.github.com/repos/druids/django-pyston","forks_url":"https://api.github.com/repos/druids/django-pyston/forks","keys_url":"https://api.github.com/repos/druids/django-pyston/keys{/key_id}","collaborators_url":"https://api.github.com/repos/druids/django-pyston/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/druids/django-pyston/teams","hooks_url":"https://api.github.com/repos/druids/django-pyston/hooks","issue_events_url":"https://api.github.com/repos/druids/django-pyston/issues/events{/number}","events_url":"https://api.github.com/repos/druids/django-pyston/events","assignees_url":"https://api.github.com/repos/druids/django-pyston/assignees{/user}","branches_url":"https://api.github.com/repos/druids/django-pyston/branches{/branch}","tags_url":"https://api.github.com/repos/druids/django-pyston/tags","blobs_url":"https://api.github.com/repos/druids/django-pyston/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/druids/django-pyston/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/druids/django-pyston/git/refs{/sha}","trees_url":"https://api.github.com/repos/druids/django-pyston/git/trees{/sha}","statuses_url":"https://api.github.com/repos/druids/django-pyston/statuses/{sha}","languages_url":"https://api.github.com/repos/druids/django-pyston/languages","stargazers_url":"https://api.github.com/repos/druids/django-pyston/stargazers","contributors_url":"https://api.github.com/repos/druids/django-pyston/contributors","subscribers_url":"https://api.github.com/repos/druids/django-pyston/subscribers","subscription_url":"https://api.github.com/repos/druids/django-pyston/subscription","commits_url":"https://api.github.com/repos/druids/django-pyston/commits{/sha}","git_commits_url":"https://api.github.com/repos/druids/django-pyston/git/commits{/sha}","comments_url":"https://api.github.com/repos/druids/django-pyston/comments{/number}","issue_comment_url":"https://api.github.com/repos/druids/django-pyston/issues/comments{/number}","contents_url":"https://api.github.com/repos/druids/django-pyston/contents/{+path}","compare_url":"https://api.github.com/repos/druids/django-pyston/compare/{base}...{head}","merges_url":"https://api.github.com/repos/druids/django-pyston/merges","archive_url":"https://api.github.com/repos/druids/django-pyston/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/druids/django-pyston/downloads","issues_url":"https://api.github.com/repos/druids/django-pyston/issues{/number}","pulls_url":"https://api.github.com/repos/druids/django-pyston/pulls{/number}","milestones_url":"https://api.github.com/repos/druids/django-pyston/milestones{/number}","notifications_url":"https://api.github.com/repos/druids/django-pyston/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/druids/django-pyston/labels{/name}","releases_url":"https://api.github.com/repos/druids/django-pyston/releases{/id}","deployments_url":"https://api.github.com/repos/druids/django-pyston/deployments","created_at":"2016-05-01T21:24:21Z","updated_at":"2016-05-08T12:01:37Z","pushed_at":"2016-12-28T18:10:46Z","git_url":"git://github.com/druids/django-pyston.git","ssh_url":"git@github.com:druids/django-pyston.git","clone_url":"https://github.com/druids/django-pyston.git","svn_url":"https://github.com/druids/django-pyston","homepage":null,"size":431,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/druids/django-pyston/pulls/18"},"html":{"href":"https://github.com/druids/django-pyston/pull/18"},"issue":{"href":"https://api.github.com/repos/druids/django-pyston/issues/18"},"comments":{"href":"https://api.github.com/repos/druids/django-pyston/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/druids/django-pyston/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/druids/django-pyston/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/druids/django-pyston/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/druids/django-pyston/statuses/9cf9aa9778b6d795ce0ee92bc65eda19aca3f577"}}}}
{"actor":{"display_login":"matllubos"}}