{"action":"created","comment":{"url":"https://api.github.com/repos/dgilland/verify/pulls/comments/34532731","id":34532731,"diff_hunk":"@@ -92,3 +141,14 @@ def test_assert_raises(meth, value, arg):\n         meth(value, *arg.args, **opts)\n \n     assert opts['msg'] in str(exc.value)\n+\n+\n+def test_expect_and_ensure_are_aliases():","path":"tests/test_verify.py","position":76,"original_position":76,"commit_id":"dc0c7ab964a8d9374e91610fc59fad7b43376068","original_commit_id":"dc0c7ab964a8d9374e91610fc59fad7b43376068","user":{"login":"dgilland","id":1251349,"avatar_url":"https://avatars.githubusercontent.com/u/1251349?v=3","gravatar_id":"","url":"https://api.github.com/users/dgilland","html_url":"https://github.com/dgilland","followers_url":"https://api.github.com/users/dgilland/followers","following_url":"https://api.github.com/users/dgilland/following{/other_user}","gists_url":"https://api.github.com/users/dgilland/gists{/gist_id}","starred_url":"https://api.github.com/users/dgilland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgilland/subscriptions","organizations_url":"https://api.github.com/users/dgilland/orgs","repos_url":"https://api.github.com/users/dgilland/repos","events_url":"https://api.github.com/users/dgilland/events{/privacy}","received_events_url":"https://api.github.com/users/dgilland/received_events","type":"User","site_admin":false},"body":"`test_expect_and_ensure_are_aliases` and `test_assertions_aliases` could be a single, parametrized test like:\r\n\r\n```python\r\n@pytest.mark.parametrize('obj,alias', [\r\n    (expect, ensure),\r\n    (Greater, GreaterThan),\r\n    ...snip...\r\n])\r\ndef test_aliases(obj, alias):\r\n    assert obj is alias\r\n```","created_at":"2015-07-14T02:30:16Z","updated_at":"2015-07-14T02:30:16Z","html_url":"https://github.com/dgilland/verify/pull/8#discussion_r34532731","pull_request_url":"https://api.github.com/repos/dgilland/verify/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/dgilland/verify/pulls/comments/34532731"},"html":{"href":"https://github.com/dgilland/verify/pull/8#discussion_r34532731"},"pull_request":{"href":"https://api.github.com/repos/dgilland/verify/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/dgilland/verify/pulls/8","id":39859216,"html_url":"https://github.com/dgilland/verify/pull/8","diff_url":"https://github.com/dgilland/verify/pull/8.diff","patch_url":"https://github.com/dgilland/verify/pull/8.patch","issue_url":"https://api.github.com/repos/dgilland/verify/issues/8","number":8,"state":"open","locked":false,"title":"More natural syntax.","user":{"login":"beregond","id":956019,"avatar_url":"https://avatars.githubusercontent.com/u/956019?v=3","gravatar_id":"","url":"https://api.github.com/users/beregond","html_url":"https://github.com/beregond","followers_url":"https://api.github.com/users/beregond/followers","following_url":"https://api.github.com/users/beregond/following{/other_user}","gists_url":"https://api.github.com/users/beregond/gists{/gist_id}","starred_url":"https://api.github.com/users/beregond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beregond/subscriptions","organizations_url":"https://api.github.com/users/beregond/orgs","repos_url":"https://api.github.com/users/beregond/repos","events_url":"https://api.github.com/users/beregond/events{/privacy}","received_events_url":"https://api.github.com/users/beregond/received_events","type":"User","site_admin":false},"body":"What was done:\r\n\r\n* ``ensure`` alias\r\n* ``to_be_*`` and ``is_*`` aliases (except for ``Not`` assertion, because of name clash with ``IsNot``)\r\n* aliases for numeric assertions like ``GreaterOrEqual``, since this way is much more simple for codebase (no weird ``_or_`` infixes handling)\r\n* special methods ``does`` for ``Predicate`` and ``does_not`` for ``Not`` (also because of above reason)\r\n\r\nCloses #7.","created_at":"2015-07-13T21:34:31Z","updated_at":"2015-07-14T02:30:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8d9c1c8a336b04a3ada44c1e24569065eec9f41","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dgilland/verify/pulls/8/commits","review_comments_url":"https://api.github.com/repos/dgilland/verify/pulls/8/comments","review_comment_url":"https://api.github.com/repos/dgilland/verify/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dgilland/verify/issues/8/comments","statuses_url":"https://api.github.com/repos/dgilland/verify/statuses/dc0c7ab964a8d9374e91610fc59fad7b43376068","head":{"label":"beregond:feature/more-natural-syntax","ref":"feature/more-natural-syntax","sha":"dc0c7ab964a8d9374e91610fc59fad7b43376068","user":{"login":"beregond","id":956019,"avatar_url":"https://avatars.githubusercontent.com/u/956019?v=3","gravatar_id":"","url":"https://api.github.com/users/beregond","html_url":"https://github.com/beregond","followers_url":"https://api.github.com/users/beregond/followers","following_url":"https://api.github.com/users/beregond/following{/other_user}","gists_url":"https://api.github.com/users/beregond/gists{/gist_id}","starred_url":"https://api.github.com/users/beregond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beregond/subscriptions","organizations_url":"https://api.github.com/users/beregond/orgs","repos_url":"https://api.github.com/users/beregond/repos","events_url":"https://api.github.com/users/beregond/events{/privacy}","received_events_url":"https://api.github.com/users/beregond/received_events","type":"User","site_admin":false},"repo":{"id":38780077,"name":"verify","full_name":"beregond/verify","owner":{"login":"beregond","id":956019,"avatar_url":"https://avatars.githubusercontent.com/u/956019?v=3","gravatar_id":"","url":"https://api.github.com/users/beregond","html_url":"https://github.com/beregond","followers_url":"https://api.github.com/users/beregond/followers","following_url":"https://api.github.com/users/beregond/following{/other_user}","gists_url":"https://api.github.com/users/beregond/gists{/gist_id}","starred_url":"https://api.github.com/users/beregond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beregond/subscriptions","organizations_url":"https://api.github.com/users/beregond/orgs","repos_url":"https://api.github.com/users/beregond/repos","events_url":"https://api.github.com/users/beregond/events{/privacy}","received_events_url":"https://api.github.com/users/beregond/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/beregond/verify","description":"A painless assertion and validation library for Python.","fork":true,"url":"https://api.github.com/repos/beregond/verify","forks_url":"https://api.github.com/repos/beregond/verify/forks","keys_url":"https://api.github.com/repos/beregond/verify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/beregond/verify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/beregond/verify/teams","hooks_url":"https://api.github.com/repos/beregond/verify/hooks","issue_events_url":"https://api.github.com/repos/beregond/verify/issues/events{/number}","events_url":"https://api.github.com/repos/beregond/verify/events","assignees_url":"https://api.github.com/repos/beregond/verify/assignees{/user}","branches_url":"https://api.github.com/repos/beregond/verify/branches{/branch}","tags_url":"https://api.github.com/repos/beregond/verify/tags","blobs_url":"https://api.github.com/repos/beregond/verify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/beregond/verify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/beregond/verify/git/refs{/sha}","trees_url":"https://api.github.com/repos/beregond/verify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/beregond/verify/statuses/{sha}","languages_url":"https://api.github.com/repos/beregond/verify/languages","stargazers_url":"https://api.github.com/repos/beregond/verify/stargazers","contributors_url":"https://api.github.com/repos/beregond/verify/contributors","subscribers_url":"https://api.github.com/repos/beregond/verify/subscribers","subscription_url":"https://api.github.com/repos/beregond/verify/subscription","commits_url":"https://api.github.com/repos/beregond/verify/commits{/sha}","git_commits_url":"https://api.github.com/repos/beregond/verify/git/commits{/sha}","comments_url":"https://api.github.com/repos/beregond/verify/comments{/number}","issue_comment_url":"https://api.github.com/repos/beregond/verify/issues/comments{/number}","contents_url":"https://api.github.com/repos/beregond/verify/contents/{+path}","compare_url":"https://api.github.com/repos/beregond/verify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/beregond/verify/merges","archive_url":"https://api.github.com/repos/beregond/verify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/beregond/verify/downloads","issues_url":"https://api.github.com/repos/beregond/verify/issues{/number}","pulls_url":"https://api.github.com/repos/beregond/verify/pulls{/number}","milestones_url":"https://api.github.com/repos/beregond/verify/milestones{/number}","notifications_url":"https://api.github.com/repos/beregond/verify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/beregond/verify/labels{/name}","releases_url":"https://api.github.com/repos/beregond/verify/releases{/id}","created_at":"2015-07-08T21:08:50Z","updated_at":"2015-07-08T21:08:50Z","pushed_at":"2015-07-13T21:36:42Z","git_url":"git://github.com/beregond/verify.git","ssh_url":"git@github.com:beregond/verify.git","clone_url":"https://github.com/beregond/verify.git","svn_url":"https://github.com/beregond/verify","homepage":"http://verify.readthedocs.org/","size":292,"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":"dgilland:develop","ref":"develop","sha":"8de309dd268dfd930bbd8625ea8bd3f6fb2ffbba","user":{"login":"dgilland","id":1251349,"avatar_url":"https://avatars.githubusercontent.com/u/1251349?v=3","gravatar_id":"","url":"https://api.github.com/users/dgilland","html_url":"https://github.com/dgilland","followers_url":"https://api.github.com/users/dgilland/followers","following_url":"https://api.github.com/users/dgilland/following{/other_user}","gists_url":"https://api.github.com/users/dgilland/gists{/gist_id}","starred_url":"https://api.github.com/users/dgilland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgilland/subscriptions","organizations_url":"https://api.github.com/users/dgilland/orgs","repos_url":"https://api.github.com/users/dgilland/repos","events_url":"https://api.github.com/users/dgilland/events{/privacy}","received_events_url":"https://api.github.com/users/dgilland/received_events","type":"User","site_admin":false},"repo":{"id":35249370,"name":"verify","full_name":"dgilland/verify","owner":{"login":"dgilland","id":1251349,"avatar_url":"https://avatars.githubusercontent.com/u/1251349?v=3","gravatar_id":"","url":"https://api.github.com/users/dgilland","html_url":"https://github.com/dgilland","followers_url":"https://api.github.com/users/dgilland/followers","following_url":"https://api.github.com/users/dgilland/following{/other_user}","gists_url":"https://api.github.com/users/dgilland/gists{/gist_id}","starred_url":"https://api.github.com/users/dgilland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgilland/subscriptions","organizations_url":"https://api.github.com/users/dgilland/orgs","repos_url":"https://api.github.com/users/dgilland/repos","events_url":"https://api.github.com/users/dgilland/events{/privacy}","received_events_url":"https://api.github.com/users/dgilland/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dgilland/verify","description":"A painless assertion and validation library for Python.","fork":false,"url":"https://api.github.com/repos/dgilland/verify","forks_url":"https://api.github.com/repos/dgilland/verify/forks","keys_url":"https://api.github.com/repos/dgilland/verify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dgilland/verify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dgilland/verify/teams","hooks_url":"https://api.github.com/repos/dgilland/verify/hooks","issue_events_url":"https://api.github.com/repos/dgilland/verify/issues/events{/number}","events_url":"https://api.github.com/repos/dgilland/verify/events","assignees_url":"https://api.github.com/repos/dgilland/verify/assignees{/user}","branches_url":"https://api.github.com/repos/dgilland/verify/branches{/branch}","tags_url":"https://api.github.com/repos/dgilland/verify/tags","blobs_url":"https://api.github.com/repos/dgilland/verify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dgilland/verify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dgilland/verify/git/refs{/sha}","trees_url":"https://api.github.com/repos/dgilland/verify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dgilland/verify/statuses/{sha}","languages_url":"https://api.github.com/repos/dgilland/verify/languages","stargazers_url":"https://api.github.com/repos/dgilland/verify/stargazers","contributors_url":"https://api.github.com/repos/dgilland/verify/contributors","subscribers_url":"https://api.github.com/repos/dgilland/verify/subscribers","subscription_url":"https://api.github.com/repos/dgilland/verify/subscription","commits_url":"https://api.github.com/repos/dgilland/verify/commits{/sha}","git_commits_url":"https://api.github.com/repos/dgilland/verify/git/commits{/sha}","comments_url":"https://api.github.com/repos/dgilland/verify/comments{/number}","issue_comment_url":"https://api.github.com/repos/dgilland/verify/issues/comments{/number}","contents_url":"https://api.github.com/repos/dgilland/verify/contents/{+path}","compare_url":"https://api.github.com/repos/dgilland/verify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dgilland/verify/merges","archive_url":"https://api.github.com/repos/dgilland/verify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dgilland/verify/downloads","issues_url":"https://api.github.com/repos/dgilland/verify/issues{/number}","pulls_url":"https://api.github.com/repos/dgilland/verify/pulls{/number}","milestones_url":"https://api.github.com/repos/dgilland/verify/milestones{/number}","notifications_url":"https://api.github.com/repos/dgilland/verify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dgilland/verify/labels{/name}","releases_url":"https://api.github.com/repos/dgilland/verify/releases{/id}","created_at":"2015-05-07T23:58:36Z","updated_at":"2015-07-07T20:12:41Z","pushed_at":"2015-07-13T21:36:43Z","git_url":"git://github.com/dgilland/verify.git","ssh_url":"git@github.com:dgilland/verify.git","clone_url":"https://github.com/dgilland/verify.git","svn_url":"https://github.com/dgilland/verify","homepage":"http://verify.readthedocs.org/","size":268,"stargazers_count":42,"watchers_count":42,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":42,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dgilland/verify/pulls/8"},"html":{"href":"https://github.com/dgilland/verify/pull/8"},"issue":{"href":"https://api.github.com/repos/dgilland/verify/issues/8"},"comments":{"href":"https://api.github.com/repos/dgilland/verify/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/dgilland/verify/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/dgilland/verify/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dgilland/verify/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/dgilland/verify/statuses/dc0c7ab964a8d9374e91610fc59fad7b43376068"}}}}