{"action":"created","comment":{"url":"https://api.github.com/repos/Simplistix/testfixtures/pulls/comments/62421049","id":62421049,"diff_hunk":"@@ -685,3 +685,27 @@ def diff(x, y, x_label='', y_label=''):\n             y_label or 'second',\n             lineterm='')\n     )\n+\n+\n+class RangeComparison:\n+    \"\"\"\n+    An object that can be used in comparisons of numerics to validate\n+    actual falls within a certain range\n+    \"\"\"\n+    def __init__(self, lower_bound, upper_bound):\n+        self.lower_bound = lower_bound\n+        self.upper_bound = upper_bound\n+\n+    def __eq__(self, other):\n+        try:\n+            0 + other","path":"testfixtures/comparison.py","position":17,"original_position":17,"commit_id":"e60ba0d077a9135304456d969dc26abeee7b0feb","original_commit_id":"e60ba0d077a9135304456d969dc26abeee7b0feb","user":{"login":"asqui","id":174182,"avatar_url":"https://avatars.githubusercontent.com/u/174182?v=3","gravatar_id":"","url":"https://api.github.com/users/asqui","html_url":"https://github.com/asqui","followers_url":"https://api.github.com/users/asqui/followers","following_url":"https://api.github.com/users/asqui/following{/other_user}","gists_url":"https://api.github.com/users/asqui/gists{/gist_id}","starred_url":"https://api.github.com/users/asqui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asqui/subscriptions","organizations_url":"https://api.github.com/users/asqui/orgs","repos_url":"https://api.github.com/users/asqui/repos","events_url":"https://api.github.com/users/asqui/events{/privacy}","received_events_url":"https://api.github.com/users/asqui/received_events","type":"User","site_admin":false},"body":"Seems odd. Why are you testing that addition is supported if the operator you actually need is `<=`?\r\n\r\nWhy not put the `try/except` around the actual comparison instead?","created_at":"2016-05-07T19:06:17Z","updated_at":"2016-05-07T19:06:17Z","html_url":"https://github.com/Simplistix/testfixtures/pull/40#discussion_r62421049","pull_request_url":"https://api.github.com/repos/Simplistix/testfixtures/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/Simplistix/testfixtures/pulls/comments/62421049"},"html":{"href":"https://github.com/Simplistix/testfixtures/pull/40#discussion_r62421049"},"pull_request":{"href":"https://api.github.com/repos/Simplistix/testfixtures/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/Simplistix/testfixtures/pulls/40","id":69210958,"html_url":"https://github.com/Simplistix/testfixtures/pull/40","diff_url":"https://github.com/Simplistix/testfixtures/pull/40.diff","patch_url":"https://github.com/Simplistix/testfixtures/pull/40.patch","issue_url":"https://api.github.com/repos/Simplistix/testfixtures/issues/40","number":40,"state":"closed","locked":false,"title":"Adding RangeComparison Class","user":{"login":"asafpelegcodes","id":6590390,"avatar_url":"https://avatars.githubusercontent.com/u/6590390?v=3","gravatar_id":"","url":"https://api.github.com/users/asafpelegcodes","html_url":"https://github.com/asafpelegcodes","followers_url":"https://api.github.com/users/asafpelegcodes/followers","following_url":"https://api.github.com/users/asafpelegcodes/following{/other_user}","gists_url":"https://api.github.com/users/asafpelegcodes/gists{/gist_id}","starred_url":"https://api.github.com/users/asafpelegcodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asafpelegcodes/subscriptions","organizations_url":"https://api.github.com/users/asafpelegcodes/orgs","repos_url":"https://api.github.com/users/asafpelegcodes/repos","events_url":"https://api.github.com/users/asafpelegcodes/events{/privacy}","received_events_url":"https://api.github.com/users/asafpelegcodes/received_events","type":"User","site_admin":false},"body":"Class, Tests & Access","created_at":"2016-05-06T21:11:02Z","updated_at":"2016-05-07T19:06:17Z","closed_at":"2016-05-06T21:14:42Z","merged_at":null,"merge_commit_sha":"d2a09dac1b624bf8c65df1f25814a20a9cb50442","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Simplistix/testfixtures/pulls/40/commits","review_comments_url":"https://api.github.com/repos/Simplistix/testfixtures/pulls/40/comments","review_comment_url":"https://api.github.com/repos/Simplistix/testfixtures/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Simplistix/testfixtures/issues/40/comments","statuses_url":"https://api.github.com/repos/Simplistix/testfixtures/statuses/e60ba0d077a9135304456d969dc26abeee7b0feb","head":{"label":"LocusEnergy:asaf/RangeComparison","ref":"asaf/RangeComparison","sha":"e60ba0d077a9135304456d969dc26abeee7b0feb","user":{"login":"LocusEnergy","id":3182734,"avatar_url":"https://avatars.githubusercontent.com/u/3182734?v=3","gravatar_id":"","url":"https://api.github.com/users/LocusEnergy","html_url":"https://github.com/LocusEnergy","followers_url":"https://api.github.com/users/LocusEnergy/followers","following_url":"https://api.github.com/users/LocusEnergy/following{/other_user}","gists_url":"https://api.github.com/users/LocusEnergy/gists{/gist_id}","starred_url":"https://api.github.com/users/LocusEnergy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LocusEnergy/subscriptions","organizations_url":"https://api.github.com/users/LocusEnergy/orgs","repos_url":"https://api.github.com/users/LocusEnergy/repos","events_url":"https://api.github.com/users/LocusEnergy/events{/privacy}","received_events_url":"https://api.github.com/users/LocusEnergy/received_events","type":"Organization","site_admin":false},"repo":{"id":57221824,"name":"testfixtures","full_name":"LocusEnergy/testfixtures","owner":{"login":"LocusEnergy","id":3182734,"avatar_url":"https://avatars.githubusercontent.com/u/3182734?v=3","gravatar_id":"","url":"https://api.github.com/users/LocusEnergy","html_url":"https://github.com/LocusEnergy","followers_url":"https://api.github.com/users/LocusEnergy/followers","following_url":"https://api.github.com/users/LocusEnergy/following{/other_user}","gists_url":"https://api.github.com/users/LocusEnergy/gists{/gist_id}","starred_url":"https://api.github.com/users/LocusEnergy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LocusEnergy/subscriptions","organizations_url":"https://api.github.com/users/LocusEnergy/orgs","repos_url":"https://api.github.com/users/LocusEnergy/repos","events_url":"https://api.github.com/users/LocusEnergy/events{/privacy}","received_events_url":"https://api.github.com/users/LocusEnergy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LocusEnergy/testfixtures","description":"TestFixtures is a collection of helpers and mock objects that are useful when writing unit tests or doc tests.","fork":true,"url":"https://api.github.com/repos/LocusEnergy/testfixtures","forks_url":"https://api.github.com/repos/LocusEnergy/testfixtures/forks","keys_url":"https://api.github.com/repos/LocusEnergy/testfixtures/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LocusEnergy/testfixtures/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LocusEnergy/testfixtures/teams","hooks_url":"https://api.github.com/repos/LocusEnergy/testfixtures/hooks","issue_events_url":"https://api.github.com/repos/LocusEnergy/testfixtures/issues/events{/number}","events_url":"https://api.github.com/repos/LocusEnergy/testfixtures/events","assignees_url":"https://api.github.com/repos/LocusEnergy/testfixtures/assignees{/user}","branches_url":"https://api.github.com/repos/LocusEnergy/testfixtures/branches{/branch}","tags_url":"https://api.github.com/repos/LocusEnergy/testfixtures/tags","blobs_url":"https://api.github.com/repos/LocusEnergy/testfixtures/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LocusEnergy/testfixtures/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LocusEnergy/testfixtures/git/refs{/sha}","trees_url":"https://api.github.com/repos/LocusEnergy/testfixtures/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LocusEnergy/testfixtures/statuses/{sha}","languages_url":"https://api.github.com/repos/LocusEnergy/testfixtures/languages","stargazers_url":"https://api.github.com/repos/LocusEnergy/testfixtures/stargazers","contributors_url":"https://api.github.com/repos/LocusEnergy/testfixtures/contributors","subscribers_url":"https://api.github.com/repos/LocusEnergy/testfixtures/subscribers","subscription_url":"https://api.github.com/repos/LocusEnergy/testfixtures/subscription","commits_url":"https://api.github.com/repos/LocusEnergy/testfixtures/commits{/sha}","git_commits_url":"https://api.github.com/repos/LocusEnergy/testfixtures/git/commits{/sha}","comments_url":"https://api.github.com/repos/LocusEnergy/testfixtures/comments{/number}","issue_comment_url":"https://api.github.com/repos/LocusEnergy/testfixtures/issues/comments{/number}","contents_url":"https://api.github.com/repos/LocusEnergy/testfixtures/contents/{+path}","compare_url":"https://api.github.com/repos/LocusEnergy/testfixtures/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LocusEnergy/testfixtures/merges","archive_url":"https://api.github.com/repos/LocusEnergy/testfixtures/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LocusEnergy/testfixtures/downloads","issues_url":"https://api.github.com/repos/LocusEnergy/testfixtures/issues{/number}","pulls_url":"https://api.github.com/repos/LocusEnergy/testfixtures/pulls{/number}","milestones_url":"https://api.github.com/repos/LocusEnergy/testfixtures/milestones{/number}","notifications_url":"https://api.github.com/repos/LocusEnergy/testfixtures/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LocusEnergy/testfixtures/labels{/name}","releases_url":"https://api.github.com/repos/LocusEnergy/testfixtures/releases{/id}","deployments_url":"https://api.github.com/repos/LocusEnergy/testfixtures/deployments","created_at":"2016-04-27T14:53:02Z","updated_at":"2016-04-27T14:53:03Z","pushed_at":"2016-05-06T21:15:51Z","git_url":"git://github.com/LocusEnergy/testfixtures.git","ssh_url":"git@github.com:LocusEnergy/testfixtures.git","clone_url":"https://github.com/LocusEnergy/testfixtures.git","svn_url":"https://github.com/LocusEnergy/testfixtures","homepage":"http://testfixtures.readthedocs.org","size":989,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Simplistix:master","ref":"master","sha":"99439f589b19cc7f531d6a00f3f8157b4f16ca2d","user":{"login":"Simplistix","id":809412,"avatar_url":"https://avatars.githubusercontent.com/u/809412?v=3","gravatar_id":"","url":"https://api.github.com/users/Simplistix","html_url":"https://github.com/Simplistix","followers_url":"https://api.github.com/users/Simplistix/followers","following_url":"https://api.github.com/users/Simplistix/following{/other_user}","gists_url":"https://api.github.com/users/Simplistix/gists{/gist_id}","starred_url":"https://api.github.com/users/Simplistix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simplistix/subscriptions","organizations_url":"https://api.github.com/users/Simplistix/orgs","repos_url":"https://api.github.com/users/Simplistix/repos","events_url":"https://api.github.com/users/Simplistix/events{/privacy}","received_events_url":"https://api.github.com/users/Simplistix/received_events","type":"Organization","site_admin":false},"repo":{"id":1811242,"name":"testfixtures","full_name":"Simplistix/testfixtures","owner":{"login":"Simplistix","id":809412,"avatar_url":"https://avatars.githubusercontent.com/u/809412?v=3","gravatar_id":"","url":"https://api.github.com/users/Simplistix","html_url":"https://github.com/Simplistix","followers_url":"https://api.github.com/users/Simplistix/followers","following_url":"https://api.github.com/users/Simplistix/following{/other_user}","gists_url":"https://api.github.com/users/Simplistix/gists{/gist_id}","starred_url":"https://api.github.com/users/Simplistix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simplistix/subscriptions","organizations_url":"https://api.github.com/users/Simplistix/orgs","repos_url":"https://api.github.com/users/Simplistix/repos","events_url":"https://api.github.com/users/Simplistix/events{/privacy}","received_events_url":"https://api.github.com/users/Simplistix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Simplistix/testfixtures","description":"TestFixtures is a collection of helpers and mock objects that are useful when writing unit tests or doc tests.","fork":false,"url":"https://api.github.com/repos/Simplistix/testfixtures","forks_url":"https://api.github.com/repos/Simplistix/testfixtures/forks","keys_url":"https://api.github.com/repos/Simplistix/testfixtures/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Simplistix/testfixtures/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Simplistix/testfixtures/teams","hooks_url":"https://api.github.com/repos/Simplistix/testfixtures/hooks","issue_events_url":"https://api.github.com/repos/Simplistix/testfixtures/issues/events{/number}","events_url":"https://api.github.com/repos/Simplistix/testfixtures/events","assignees_url":"https://api.github.com/repos/Simplistix/testfixtures/assignees{/user}","branches_url":"https://api.github.com/repos/Simplistix/testfixtures/branches{/branch}","tags_url":"https://api.github.com/repos/Simplistix/testfixtures/tags","blobs_url":"https://api.github.com/repos/Simplistix/testfixtures/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Simplistix/testfixtures/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Simplistix/testfixtures/git/refs{/sha}","trees_url":"https://api.github.com/repos/Simplistix/testfixtures/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Simplistix/testfixtures/statuses/{sha}","languages_url":"https://api.github.com/repos/Simplistix/testfixtures/languages","stargazers_url":"https://api.github.com/repos/Simplistix/testfixtures/stargazers","contributors_url":"https://api.github.com/repos/Simplistix/testfixtures/contributors","subscribers_url":"https://api.github.com/repos/Simplistix/testfixtures/subscribers","subscription_url":"https://api.github.com/repos/Simplistix/testfixtures/subscription","commits_url":"https://api.github.com/repos/Simplistix/testfixtures/commits{/sha}","git_commits_url":"https://api.github.com/repos/Simplistix/testfixtures/git/commits{/sha}","comments_url":"https://api.github.com/repos/Simplistix/testfixtures/comments{/number}","issue_comment_url":"https://api.github.com/repos/Simplistix/testfixtures/issues/comments{/number}","contents_url":"https://api.github.com/repos/Simplistix/testfixtures/contents/{+path}","compare_url":"https://api.github.com/repos/Simplistix/testfixtures/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Simplistix/testfixtures/merges","archive_url":"https://api.github.com/repos/Simplistix/testfixtures/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Simplistix/testfixtures/downloads","issues_url":"https://api.github.com/repos/Simplistix/testfixtures/issues{/number}","pulls_url":"https://api.github.com/repos/Simplistix/testfixtures/pulls{/number}","milestones_url":"https://api.github.com/repos/Simplistix/testfixtures/milestones{/number}","notifications_url":"https://api.github.com/repos/Simplistix/testfixtures/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Simplistix/testfixtures/labels{/name}","releases_url":"https://api.github.com/repos/Simplistix/testfixtures/releases{/id}","deployments_url":"https://api.github.com/repos/Simplistix/testfixtures/deployments","created_at":"2011-05-27T18:44:50Z","updated_at":"2016-05-06T17:40:49Z","pushed_at":"2016-05-06T21:11:02Z","git_url":"git://github.com/Simplistix/testfixtures.git","ssh_url":"git@github.com:Simplistix/testfixtures.git","clone_url":"https://github.com/Simplistix/testfixtures.git","svn_url":"https://github.com/Simplistix/testfixtures","homepage":"http://testfixtures.readthedocs.org","size":997,"stargazers_count":48,"watchers_count":48,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":3,"forks":22,"open_issues":3,"watchers":48,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Simplistix/testfixtures/pulls/40"},"html":{"href":"https://github.com/Simplistix/testfixtures/pull/40"},"issue":{"href":"https://api.github.com/repos/Simplistix/testfixtures/issues/40"},"comments":{"href":"https://api.github.com/repos/Simplistix/testfixtures/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/Simplistix/testfixtures/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/Simplistix/testfixtures/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Simplistix/testfixtures/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/Simplistix/testfixtures/statuses/e60ba0d077a9135304456d969dc26abeee7b0feb"}}}}