{"action":"created","comment":{"url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/pulls/comments/74558016","id":74558016,"diff_hunk":"@@ -2,34 +2,83 @@ from ftw.lawgiver.tests.base import WorkflowTest\n from {{{package.fullname}}}.testing import {{{package.part_1_upper}}}_FUNCTIONAL\n from path import Path\n import ftw.workspace\n+import os\n \n \n-class CopyFromWorkspaceWorkflowTest(WorkflowTest):\n+class CompareWorkspaceWorkflowTest(WorkflowTest):\n     layer = {{{package.part_1_upper}}}_FUNCTIONAL\n \n+    specification_name = 'specification.de.txt'\n+\n     def setUp(self):\n-        super(CopyFromWorkspaceWorkflowTest, self).setUp()\n-        if not self._is_base_test():\n-            spec_source = Path(ftw.workspace.__file__).joinpath(\n-                '..', 'profiles', 'default',\n-                'workflows', Path(self.workflow_path).basename(),\n-                'specification.de.txt').abspath()\n-            spec_target = Path(__file__).joinpath(\n-                '..', self.workflow_path).abspath()\n-            spec_source.copy(spec_target)\n+        super(CompareWorkspaceWorkflowTest, self).setUp()\n+        if self._is_base_test():\n+            return\n+\n+        spec_source_path = Path(ftw.workspace.__file__).joinpath(\n+            '..', 'profiles', 'default',\n+            'workflows', Path(self.workflow_path).basename(),\n+            self.specification_name).abspath()\n+\n+        self.assertTrue(\n+            os.path.isfile(spec_source_path),\n+            \"The source file at '{}' does no longer exists.\".format(\n+                spec_source_path))\n+\n+        spec_source = open(spec_source_path).read()","path":"bobtemplates/workspace/+package.fullname+/+package.part_1+/+package.part_2+/tests/test_workflows.py.bob","position":37,"original_position":37,"commit_id":"a5d73ee02f445f99f79f2b56cc73597d95dc78ca","original_commit_id":"a5d73ee02f445f99f79f2b56cc73597d95dc78ca","user":{"login":"jone","id":7469,"avatar_url":"https://avatars.githubusercontent.com/u/7469?v=3","gravatar_id":"","url":"https://api.github.com/users/jone","html_url":"https://github.com/jone","followers_url":"https://api.github.com/users/jone/followers","following_url":"https://api.github.com/users/jone/following{/other_user}","gists_url":"https://api.github.com/users/jone/gists{/gist_id}","starred_url":"https://api.github.com/users/jone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jone/subscriptions","organizations_url":"https://api.github.com/users/jone/orgs","repos_url":"https://api.github.com/users/jone/repos","events_url":"https://api.github.com/users/jone/events{/privacy}","received_events_url":"https://api.github.com/users/jone/received_events","type":"User","site_admin":false},"body":"```diff\r\n_        spec_source = open(spec_source_path).read()\r\n+        spec_source =spec_source_path.bytes()\r\n```\r\n😉 ","created_at":"2016-08-12T08:40:03Z","updated_at":"2016-08-12T08:40:03Z","html_url":"https://github.com/4teamwork/bobtemplates.4teamwork/pull/96#discussion_r74558016","pull_request_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/pulls/96","_links":{"self":{"href":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/pulls/comments/74558016"},"html":{"href":"https://github.com/4teamwork/bobtemplates.4teamwork/pull/96#discussion_r74558016"},"pull_request":{"href":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/pulls/96"}}},"pull_request":{"url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/pulls/96","id":80958814,"html_url":"https://github.com/4teamwork/bobtemplates.4teamwork/pull/96","diff_url":"https://github.com/4teamwork/bobtemplates.4teamwork/pull/96.diff","patch_url":"https://github.com/4teamwork/bobtemplates.4teamwork/pull/96.patch","issue_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/issues/96","number":96,"state":"open","locked":false,"title":"Update workspace workflow tests to not override existing workflows in the policy.","user":{"login":"elioschmutz","id":557005,"avatar_url":"https://avatars.githubusercontent.com/u/557005?v=3","gravatar_id":"","url":"https://api.github.com/users/elioschmutz","html_url":"https://github.com/elioschmutz","followers_url":"https://api.github.com/users/elioschmutz/followers","following_url":"https://api.github.com/users/elioschmutz/following{/other_user}","gists_url":"https://api.github.com/users/elioschmutz/gists{/gist_id}","starred_url":"https://api.github.com/users/elioschmutz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elioschmutz/subscriptions","organizations_url":"https://api.github.com/users/elioschmutz/orgs","repos_url":"https://api.github.com/users/elioschmutz/repos","events_url":"https://api.github.com/users/elioschmutz/events{/privacy}","received_events_url":"https://api.github.com/users/elioschmutz/received_events","type":"User","site_admin":false},"body":"This PR will update the workspace template workflow test.\r\n\r\nFor more details see issue #95 \r\n\r\ncloses #95 ","created_at":"2016-08-11T13:38:27Z","updated_at":"2016-08-12T08:40:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb1c69a9ee4fb2224c148543c79c8b77c4af5b0c","assignee":{"login":"jone","id":7469,"avatar_url":"https://avatars.githubusercontent.com/u/7469?v=3","gravatar_id":"","url":"https://api.github.com/users/jone","html_url":"https://github.com/jone","followers_url":"https://api.github.com/users/jone/followers","following_url":"https://api.github.com/users/jone/following{/other_user}","gists_url":"https://api.github.com/users/jone/gists{/gist_id}","starred_url":"https://api.github.com/users/jone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jone/subscriptions","organizations_url":"https://api.github.com/users/jone/orgs","repos_url":"https://api.github.com/users/jone/repos","events_url":"https://api.github.com/users/jone/events{/privacy}","received_events_url":"https://api.github.com/users/jone/received_events","type":"User","site_admin":false},"assignees":[{"login":"jone","id":7469,"avatar_url":"https://avatars.githubusercontent.com/u/7469?v=3","gravatar_id":"","url":"https://api.github.com/users/jone","html_url":"https://github.com/jone","followers_url":"https://api.github.com/users/jone/followers","following_url":"https://api.github.com/users/jone/following{/other_user}","gists_url":"https://api.github.com/users/jone/gists{/gist_id}","starred_url":"https://api.github.com/users/jone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jone/subscriptions","organizations_url":"https://api.github.com/users/jone/orgs","repos_url":"https://api.github.com/users/jone/repos","events_url":"https://api.github.com/users/jone/events{/privacy}","received_events_url":"https://api.github.com/users/jone/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/pulls/96/commits","review_comments_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/pulls/96/comments","review_comment_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/pulls/comments{/number}","comments_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/issues/96/comments","statuses_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/statuses/a5d73ee02f445f99f79f2b56cc73597d95dc78ca","head":{"label":"4teamwork:es-95-update-workspace-workflow-test","ref":"es-95-update-workspace-workflow-test","sha":"a5d73ee02f445f99f79f2b56cc73597d95dc78ca","user":{"login":"4teamwork","id":681821,"avatar_url":"https://avatars.githubusercontent.com/u/681821?v=3","gravatar_id":"","url":"https://api.github.com/users/4teamwork","html_url":"https://github.com/4teamwork","followers_url":"https://api.github.com/users/4teamwork/followers","following_url":"https://api.github.com/users/4teamwork/following{/other_user}","gists_url":"https://api.github.com/users/4teamwork/gists{/gist_id}","starred_url":"https://api.github.com/users/4teamwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4teamwork/subscriptions","organizations_url":"https://api.github.com/users/4teamwork/orgs","repos_url":"https://api.github.com/users/4teamwork/repos","events_url":"https://api.github.com/users/4teamwork/events{/privacy}","received_events_url":"https://api.github.com/users/4teamwork/received_events","type":"Organization","site_admin":false},"repo":{"id":49863688,"name":"bobtemplates.4teamwork","full_name":"4teamwork/bobtemplates.4teamwork","owner":{"login":"4teamwork","id":681821,"avatar_url":"https://avatars.githubusercontent.com/u/681821?v=3","gravatar_id":"","url":"https://api.github.com/users/4teamwork","html_url":"https://github.com/4teamwork","followers_url":"https://api.github.com/users/4teamwork/followers","following_url":"https://api.github.com/users/4teamwork/following{/other_user}","gists_url":"https://api.github.com/users/4teamwork/gists{/gist_id}","starred_url":"https://api.github.com/users/4teamwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4teamwork/subscriptions","organizations_url":"https://api.github.com/users/4teamwork/orgs","repos_url":"https://api.github.com/users/4teamwork/repos","events_url":"https://api.github.com/users/4teamwork/events{/privacy}","received_events_url":"https://api.github.com/users/4teamwork/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/4teamwork/bobtemplates.4teamwork","description":"Webpolicy generator with mr.bob template.","fork":false,"url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork","forks_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/forks","keys_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/teams","hooks_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/hooks","issue_events_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/issues/events{/number}","events_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/events","assignees_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/assignees{/user}","branches_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/branches{/branch}","tags_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/tags","blobs_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/statuses/{sha}","languages_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/languages","stargazers_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/stargazers","contributors_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/contributors","subscribers_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/subscribers","subscription_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/subscription","commits_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/issues/comments{/number}","contents_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/contents/{+path}","compare_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/merges","archive_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/downloads","issues_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/issues{/number}","pulls_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/pulls{/number}","milestones_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/milestones{/number}","notifications_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/labels{/name}","releases_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/releases{/id}","deployments_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/deployments","created_at":"2016-01-18T08:45:42Z","updated_at":"2016-06-22T14:00:24Z","pushed_at":"2016-08-11T14:04:22Z","git_url":"git://github.com/4teamwork/bobtemplates.4teamwork.git","ssh_url":"git@github.com:4teamwork/bobtemplates.4teamwork.git","clone_url":"https://github.com/4teamwork/bobtemplates.4teamwork.git","svn_url":"https://github.com/4teamwork/bobtemplates.4teamwork","homepage":null,"size":2944,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"base":{"label":"4teamwork:master","ref":"master","sha":"a9ff6e8af15613850fce2c1115cf0014cf0ce65e","user":{"login":"4teamwork","id":681821,"avatar_url":"https://avatars.githubusercontent.com/u/681821?v=3","gravatar_id":"","url":"https://api.github.com/users/4teamwork","html_url":"https://github.com/4teamwork","followers_url":"https://api.github.com/users/4teamwork/followers","following_url":"https://api.github.com/users/4teamwork/following{/other_user}","gists_url":"https://api.github.com/users/4teamwork/gists{/gist_id}","starred_url":"https://api.github.com/users/4teamwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4teamwork/subscriptions","organizations_url":"https://api.github.com/users/4teamwork/orgs","repos_url":"https://api.github.com/users/4teamwork/repos","events_url":"https://api.github.com/users/4teamwork/events{/privacy}","received_events_url":"https://api.github.com/users/4teamwork/received_events","type":"Organization","site_admin":false},"repo":{"id":49863688,"name":"bobtemplates.4teamwork","full_name":"4teamwork/bobtemplates.4teamwork","owner":{"login":"4teamwork","id":681821,"avatar_url":"https://avatars.githubusercontent.com/u/681821?v=3","gravatar_id":"","url":"https://api.github.com/users/4teamwork","html_url":"https://github.com/4teamwork","followers_url":"https://api.github.com/users/4teamwork/followers","following_url":"https://api.github.com/users/4teamwork/following{/other_user}","gists_url":"https://api.github.com/users/4teamwork/gists{/gist_id}","starred_url":"https://api.github.com/users/4teamwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4teamwork/subscriptions","organizations_url":"https://api.github.com/users/4teamwork/orgs","repos_url":"https://api.github.com/users/4teamwork/repos","events_url":"https://api.github.com/users/4teamwork/events{/privacy}","received_events_url":"https://api.github.com/users/4teamwork/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/4teamwork/bobtemplates.4teamwork","description":"Webpolicy generator with mr.bob template.","fork":false,"url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork","forks_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/forks","keys_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/teams","hooks_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/hooks","issue_events_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/issues/events{/number}","events_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/events","assignees_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/assignees{/user}","branches_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/branches{/branch}","tags_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/tags","blobs_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/git/refs{/sha}","trees_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/statuses/{sha}","languages_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/languages","stargazers_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/stargazers","contributors_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/contributors","subscribers_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/subscribers","subscription_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/subscription","commits_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/commits{/sha}","git_commits_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/git/commits{/sha}","comments_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/comments{/number}","issue_comment_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/issues/comments{/number}","contents_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/contents/{+path}","compare_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/merges","archive_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/downloads","issues_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/issues{/number}","pulls_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/pulls{/number}","milestones_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/milestones{/number}","notifications_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/labels{/name}","releases_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/releases{/id}","deployments_url":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/deployments","created_at":"2016-01-18T08:45:42Z","updated_at":"2016-06-22T14:00:24Z","pushed_at":"2016-08-11T14:04:22Z","git_url":"git://github.com/4teamwork/bobtemplates.4teamwork.git","ssh_url":"git@github.com:4teamwork/bobtemplates.4teamwork.git","clone_url":"https://github.com/4teamwork/bobtemplates.4teamwork.git","svn_url":"https://github.com/4teamwork/bobtemplates.4teamwork","homepage":null,"size":2944,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":12,"forks":0,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/pulls/96"},"html":{"href":"https://github.com/4teamwork/bobtemplates.4teamwork/pull/96"},"issue":{"href":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/issues/96"},"comments":{"href":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/issues/96/comments"},"review_comments":{"href":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/pulls/96/comments"},"review_comment":{"href":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/pulls/96/commits"},"statuses":{"href":"https://api.github.com/repos/4teamwork/bobtemplates.4teamwork/statuses/a5d73ee02f445f99f79f2b56cc73597d95dc78ca"}}}}
{"actor":{"display_login":"jone"}}