{"action":"created","comment":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments/35530747","id":35530747,"diff_hunk":"@@ -200,14 +218,7 @@ def test_import_orgs_default(self, test_data):\n             org['organization'] for\n             org in csv_to_dataset([files['users']])\n         )\n-        self.assertEqual(\n-            ssh_import.stdout,\n-            [\n-                u'Summary',\n-                u'  Created {0} organizations.'.format(len(imp_orgs)),\n-                u''\n-            ]\n-        )\n+        self.assertEqual(ssh_import.return_code, 0)\n         self.assertTrue(all((org in orgs for org in imp_orgs)))","path":"tests/foreman/cli/test_import.py","position":133,"original_position":133,"commit_id":"5fde06c12018324d0b0f28472d1f9a46a943d43c","original_commit_id":"5fde06c12018324d0b0f28472d1f9a46a943d43c","user":{"login":"Ichimonji10","id":1012989,"avatar_url":"https://avatars.githubusercontent.com/u/1012989?v=3","gravatar_id":"","url":"https://api.github.com/users/Ichimonji10","html_url":"https://github.com/Ichimonji10","followers_url":"https://api.github.com/users/Ichimonji10/followers","following_url":"https://api.github.com/users/Ichimonji10/following{/other_user}","gists_url":"https://api.github.com/users/Ichimonji10/gists{/gist_id}","starred_url":"https://api.github.com/users/Ichimonji10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ichimonji10/subscriptions","organizations_url":"https://api.github.com/users/Ichimonji10/orgs","repos_url":"https://api.github.com/users/Ichimonji10/repos","events_url":"https://api.github.com/users/Ichimonji10/events{/privacy}","received_events_url":"https://api.github.com/users/Ichimonji10/received_events","type":"User","site_admin":false},"body":"How about:\r\n\r\n```python\r\nself.assertTrue(imp_orgs.issubset(orgs))\r\n```","created_at":"2015-07-27T12:40:02Z","updated_at":"2015-07-27T12:40:02Z","html_url":"https://github.com/SatelliteQE/robottelo/pull/2608#discussion_r35530747","pull_request_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2608","_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments/35530747"},"html":{"href":"https://github.com/SatelliteQE/robottelo/pull/2608#discussion_r35530747"},"pull_request":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2608"}}},"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2608","id":40683138,"html_url":"https://github.com/SatelliteQE/robottelo/pull/2608","diff_url":"https://github.com/SatelliteQE/robottelo/pull/2608.diff","patch_url":"https://github.com/SatelliteQE/robottelo/pull/2608.patch","issue_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2608","number":2608,"state":"open","locked":false,"title":"CLI/Import - refactored assertions","user":{"login":"rplevka","id":11773362,"avatar_url":"https://avatars.githubusercontent.com/u/11773362?v=3","gravatar_id":"","url":"https://api.github.com/users/rplevka","html_url":"https://github.com/rplevka","followers_url":"https://api.github.com/users/rplevka/followers","following_url":"https://api.github.com/users/rplevka/following{/other_user}","gists_url":"https://api.github.com/users/rplevka/gists{/gist_id}","starred_url":"https://api.github.com/users/rplevka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rplevka/subscriptions","organizations_url":"https://api.github.com/users/rplevka/orgs","repos_url":"https://api.github.com/users/rplevka/repos","events_url":"https://api.github.com/users/rplevka/events{/privacy}","received_events_url":"https://api.github.com/users/rplevka/received_events","type":"User","site_admin":false},"body":"- addresses #2574\r\n- fixes a bug in a `prepare_import_data` helper method\r\n- applies some small cosmetic fixes\r\n\r\n```bash\r\n$ nosetests test_import.py --nocapture --verbose\r\n@test: Check whether all supported Sat5 macros are being ... ok\r\n@test: Import all organizations from the default data set ... ok\r\n@test: Import all organizations from the default data set ... ok\r\n@test: Try to Import organizations with the same name to invoke ... ok\r\n@test: Import all 3 users from the our default data set (predefined ... ok\r\n@test: Try to Merge users with the same name using 'merge-users' ... ok\r\n@test: Try to Import users with the same name to invoke ... ok\r\n@test: Try to Import all organizations and their users from CSV ... ok\r\n@test: Try to Import all organizations from the ... ok\r\n@test: Try to Import all users from the ... ok\r\n\r\n----------------------------------------------------------------------\r\nRan 10 tests in 888.417s\r\n\r\nOK\r\n```","created_at":"2015-07-23T15:15:16Z","updated_at":"2015-07-27T12:40:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5a708e20f3e5d082e09c8361728029db6da2e9f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2608/commits","review_comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2608/comments","review_comment_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2608/comments","statuses_url":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/5fde06c12018324d0b0f28472d1f9a46a943d43c","head":{"label":"rplevka:import_asserts","ref":"import_asserts","sha":"5fde06c12018324d0b0f28472d1f9a46a943d43c","user":{"login":"rplevka","id":11773362,"avatar_url":"https://avatars.githubusercontent.com/u/11773362?v=3","gravatar_id":"","url":"https://api.github.com/users/rplevka","html_url":"https://github.com/rplevka","followers_url":"https://api.github.com/users/rplevka/followers","following_url":"https://api.github.com/users/rplevka/following{/other_user}","gists_url":"https://api.github.com/users/rplevka/gists{/gist_id}","starred_url":"https://api.github.com/users/rplevka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rplevka/subscriptions","organizations_url":"https://api.github.com/users/rplevka/orgs","repos_url":"https://api.github.com/users/rplevka/repos","events_url":"https://api.github.com/users/rplevka/events{/privacy}","received_events_url":"https://api.github.com/users/rplevka/received_events","type":"User","site_admin":false},"repo":{"id":34329745,"name":"robottelo","full_name":"rplevka/robottelo","owner":{"login":"rplevka","id":11773362,"avatar_url":"https://avatars.githubusercontent.com/u/11773362?v=3","gravatar_id":"","url":"https://api.github.com/users/rplevka","html_url":"https://github.com/rplevka","followers_url":"https://api.github.com/users/rplevka/followers","following_url":"https://api.github.com/users/rplevka/following{/other_user}","gists_url":"https://api.github.com/users/rplevka/gists{/gist_id}","starred_url":"https://api.github.com/users/rplevka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rplevka/subscriptions","organizations_url":"https://api.github.com/users/rplevka/orgs","repos_url":"https://api.github.com/users/rplevka/repos","events_url":"https://api.github.com/users/rplevka/events{/privacy}","received_events_url":"https://api.github.com/users/rplevka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rplevka/robottelo","description":"Robottelo is a test suite which exercises The Foreman.","fork":true,"url":"https://api.github.com/repos/rplevka/robottelo","forks_url":"https://api.github.com/repos/rplevka/robottelo/forks","keys_url":"https://api.github.com/repos/rplevka/robottelo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rplevka/robottelo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rplevka/robottelo/teams","hooks_url":"https://api.github.com/repos/rplevka/robottelo/hooks","issue_events_url":"https://api.github.com/repos/rplevka/robottelo/issues/events{/number}","events_url":"https://api.github.com/repos/rplevka/robottelo/events","assignees_url":"https://api.github.com/repos/rplevka/robottelo/assignees{/user}","branches_url":"https://api.github.com/repos/rplevka/robottelo/branches{/branch}","tags_url":"https://api.github.com/repos/rplevka/robottelo/tags","blobs_url":"https://api.github.com/repos/rplevka/robottelo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rplevka/robottelo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rplevka/robottelo/git/refs{/sha}","trees_url":"https://api.github.com/repos/rplevka/robottelo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rplevka/robottelo/statuses/{sha}","languages_url":"https://api.github.com/repos/rplevka/robottelo/languages","stargazers_url":"https://api.github.com/repos/rplevka/robottelo/stargazers","contributors_url":"https://api.github.com/repos/rplevka/robottelo/contributors","subscribers_url":"https://api.github.com/repos/rplevka/robottelo/subscribers","subscription_url":"https://api.github.com/repos/rplevka/robottelo/subscription","commits_url":"https://api.github.com/repos/rplevka/robottelo/commits{/sha}","git_commits_url":"https://api.github.com/repos/rplevka/robottelo/git/commits{/sha}","comments_url":"https://api.github.com/repos/rplevka/robottelo/comments{/number}","issue_comment_url":"https://api.github.com/repos/rplevka/robottelo/issues/comments{/number}","contents_url":"https://api.github.com/repos/rplevka/robottelo/contents/{+path}","compare_url":"https://api.github.com/repos/rplevka/robottelo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rplevka/robottelo/merges","archive_url":"https://api.github.com/repos/rplevka/robottelo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rplevka/robottelo/downloads","issues_url":"https://api.github.com/repos/rplevka/robottelo/issues{/number}","pulls_url":"https://api.github.com/repos/rplevka/robottelo/pulls{/number}","milestones_url":"https://api.github.com/repos/rplevka/robottelo/milestones{/number}","notifications_url":"https://api.github.com/repos/rplevka/robottelo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rplevka/robottelo/labels{/name}","releases_url":"https://api.github.com/repos/rplevka/robottelo/releases{/id}","created_at":"2015-04-21T13:47:48Z","updated_at":"2015-05-04T13:34:43Z","pushed_at":"2015-07-23T16:22:43Z","git_url":"git://github.com/rplevka/robottelo.git","ssh_url":"git@github.com:rplevka/robottelo.git","clone_url":"https://github.com/rplevka/robottelo.git","svn_url":"https://github.com/rplevka/robottelo","homepage":"","size":8256,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SatelliteQE:master","ref":"master","sha":"a0ad6e5dd6284740c5f6763c74b4355cea51d764","user":{"login":"SatelliteQE","id":8754276,"avatar_url":"https://avatars.githubusercontent.com/u/8754276?v=3","gravatar_id":"","url":"https://api.github.com/users/SatelliteQE","html_url":"https://github.com/SatelliteQE","followers_url":"https://api.github.com/users/SatelliteQE/followers","following_url":"https://api.github.com/users/SatelliteQE/following{/other_user}","gists_url":"https://api.github.com/users/SatelliteQE/gists{/gist_id}","starred_url":"https://api.github.com/users/SatelliteQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SatelliteQE/subscriptions","organizations_url":"https://api.github.com/users/SatelliteQE/orgs","repos_url":"https://api.github.com/users/SatelliteQE/repos","events_url":"https://api.github.com/users/SatelliteQE/events{/privacy}","received_events_url":"https://api.github.com/users/SatelliteQE/received_events","type":"Organization","site_admin":false},"repo":{"id":4000279,"name":"robottelo","full_name":"SatelliteQE/robottelo","owner":{"login":"SatelliteQE","id":8754276,"avatar_url":"https://avatars.githubusercontent.com/u/8754276?v=3","gravatar_id":"","url":"https://api.github.com/users/SatelliteQE","html_url":"https://github.com/SatelliteQE","followers_url":"https://api.github.com/users/SatelliteQE/followers","following_url":"https://api.github.com/users/SatelliteQE/following{/other_user}","gists_url":"https://api.github.com/users/SatelliteQE/gists{/gist_id}","starred_url":"https://api.github.com/users/SatelliteQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SatelliteQE/subscriptions","organizations_url":"https://api.github.com/users/SatelliteQE/orgs","repos_url":"https://api.github.com/users/SatelliteQE/repos","events_url":"https://api.github.com/users/SatelliteQE/events{/privacy}","received_events_url":"https://api.github.com/users/SatelliteQE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SatelliteQE/robottelo","description":"Robottelo is a test suite which exercises The Foreman.","fork":false,"url":"https://api.github.com/repos/SatelliteQE/robottelo","forks_url":"https://api.github.com/repos/SatelliteQE/robottelo/forks","keys_url":"https://api.github.com/repos/SatelliteQE/robottelo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SatelliteQE/robottelo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SatelliteQE/robottelo/teams","hooks_url":"https://api.github.com/repos/SatelliteQE/robottelo/hooks","issue_events_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/events{/number}","events_url":"https://api.github.com/repos/SatelliteQE/robottelo/events","assignees_url":"https://api.github.com/repos/SatelliteQE/robottelo/assignees{/user}","branches_url":"https://api.github.com/repos/SatelliteQE/robottelo/branches{/branch}","tags_url":"https://api.github.com/repos/SatelliteQE/robottelo/tags","blobs_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/refs{/sha}","trees_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/{sha}","languages_url":"https://api.github.com/repos/SatelliteQE/robottelo/languages","stargazers_url":"https://api.github.com/repos/SatelliteQE/robottelo/stargazers","contributors_url":"https://api.github.com/repos/SatelliteQE/robottelo/contributors","subscribers_url":"https://api.github.com/repos/SatelliteQE/robottelo/subscribers","subscription_url":"https://api.github.com/repos/SatelliteQE/robottelo/subscription","commits_url":"https://api.github.com/repos/SatelliteQE/robottelo/commits{/sha}","git_commits_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/commits{/sha}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/comments{/number}","issue_comment_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/comments{/number}","contents_url":"https://api.github.com/repos/SatelliteQE/robottelo/contents/{+path}","compare_url":"https://api.github.com/repos/SatelliteQE/robottelo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SatelliteQE/robottelo/merges","archive_url":"https://api.github.com/repos/SatelliteQE/robottelo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SatelliteQE/robottelo/downloads","issues_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues{/number}","pulls_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls{/number}","milestones_url":"https://api.github.com/repos/SatelliteQE/robottelo/milestones{/number}","notifications_url":"https://api.github.com/repos/SatelliteQE/robottelo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SatelliteQE/robottelo/labels{/name}","releases_url":"https://api.github.com/repos/SatelliteQE/robottelo/releases{/id}","created_at":"2012-04-12T01:36:39Z","updated_at":"2015-06-23T17:21:41Z","pushed_at":"2015-07-27T12:16:07Z","git_url":"git://github.com/SatelliteQE/robottelo.git","ssh_url":"git@github.com:SatelliteQE/robottelo.git","clone_url":"https://github.com/SatelliteQE/robottelo.git","svn_url":"https://github.com/SatelliteQE/robottelo","homepage":"","size":18084,"stargazers_count":22,"watchers_count":22,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":29,"mirror_url":null,"open_issues_count":208,"forks":29,"open_issues":208,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2608"},"html":{"href":"https://github.com/SatelliteQE/robottelo/pull/2608"},"issue":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2608"},"comments":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2608/comments"},"review_comments":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2608/comments"},"review_comment":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2608/commits"},"statuses":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/5fde06c12018324d0b0f28472d1f9a46a943d43c"}}}}