{"action":"created","comment":{"url":"https://api.github.com/repos/loklak/python-loklak-api/pulls/comments/46995294","id":46995294,"diff_hunk":"@@ -16,6 +16,50 @@ def test_peers(self):\n         self.assertTrue(type(result['peers']) == list)\n         self.assertTrue(len(result['peers']) >= 1)\n         self.assertEqual(len(result['peers']), result['count'])\n+        \n+     def test_search(self):\n+        result = self.loklak.search('doctor who')\n+        self.assertTrue('error' in self.loklak.search())\n+        self.assertTrue('statuses' in result)\n+        self.assertTrue(type(result['statuses']) == list)\n+        self.assertTrue(len(result['statuses']) >= 1)\n+        self.assertEqual(len(result['statuses']), int(result['search_metadata']['count']))\n+\n+    def test_status(self):\n+        result = self.loklak.status()\n+        self.assertTrue('index_sizes' in result)\n+        self.assertTrue('messages' in result['index_sizes'])\n+        self.assertTrue('mps' in result['index_sizes'])\n+        self.assertTrue('users' in result['index_sizes'])\n+        self.assertTrue('queries' in result['index_sizes'])\n+        self.assertTrue('accounts' in result['index_sizes'])\n+        self.assertTrue('user' in result['index_sizes'])\n+        self.assertTrue('followers' in result['index_sizes'])\n+        self.assertTrue('following' in result['index_sizes'])\n+        \n+        self.assertTrue('client_info' in result)\n+        self.assertTrue('RemoteHost' in result['client_info'])\n+        self.assertTrue('IsLocalhost' in result['client_info'])\n+        self.assertTrue('Accept-Language' in result['client_info'])","path":"test.py","position":28,"original_position":28,"commit_id":"414d813d395f7d33740c5a6b2b1acf188abe86b4","original_commit_id":"414d813d395f7d33740c5a6b2b1acf188abe86b4","user":{"login":"sudheesh001","id":4545925,"avatar_url":"https://avatars.githubusercontent.com/u/4545925?v=3","gravatar_id":"","url":"https://api.github.com/users/sudheesh001","html_url":"https://github.com/sudheesh001","followers_url":"https://api.github.com/users/sudheesh001/followers","following_url":"https://api.github.com/users/sudheesh001/following{/other_user}","gists_url":"https://api.github.com/users/sudheesh001/gists{/gist_id}","starred_url":"https://api.github.com/users/sudheesh001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudheesh001/subscriptions","organizations_url":"https://api.github.com/users/sudheesh001/orgs","repos_url":"https://api.github.com/users/sudheesh001/repos","events_url":"https://api.github.com/users/sudheesh001/events{/privacy}","received_events_url":"https://api.github.com/users/sudheesh001/received_events","type":"User","site_admin":false},"body":"Please remove this line, it really doesn't serve a purpose in testing this. :+1: ","created_at":"2015-12-08T18:48:35Z","updated_at":"2015-12-08T18:48:35Z","html_url":"https://github.com/loklak/python-loklak-api/pull/4#discussion_r46995294","pull_request_url":"https://api.github.com/repos/loklak/python-loklak-api/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/loklak/python-loklak-api/pulls/comments/46995294"},"html":{"href":"https://github.com/loklak/python-loklak-api/pull/4#discussion_r46995294"},"pull_request":{"href":"https://api.github.com/repos/loklak/python-loklak-api/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/loklak/python-loklak-api/pulls/4","id":53019513,"html_url":"https://github.com/loklak/python-loklak-api/pull/4","diff_url":"https://github.com/loklak/python-loklak-api/pull/4.diff","patch_url":"https://github.com/loklak/python-loklak-api/pull/4.patch","issue_url":"https://api.github.com/repos/loklak/python-loklak-api/issues/4","number":4,"state":"open","locked":false,"title":"Adding unit tests for status check in loklak","user":{"login":"dhruvramani","id":8494634,"avatar_url":"https://avatars.githubusercontent.com/u/8494634?v=3","gravatar_id":"","url":"https://api.github.com/users/dhruvramani","html_url":"https://github.com/dhruvramani","followers_url":"https://api.github.com/users/dhruvramani/followers","following_url":"https://api.github.com/users/dhruvramani/following{/other_user}","gists_url":"https://api.github.com/users/dhruvramani/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvramani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvramani/subscriptions","organizations_url":"https://api.github.com/users/dhruvramani/orgs","repos_url":"https://api.github.com/users/dhruvramani/repos","events_url":"https://api.github.com/users/dhruvramani/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvramani/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-08T18:32:07Z","updated_at":"2015-12-08T18:48:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ca9baa38436aef4772cda89a0e87b67d382b20a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/loklak/python-loklak-api/pulls/4/commits","review_comments_url":"https://api.github.com/repos/loklak/python-loklak-api/pulls/4/comments","review_comment_url":"https://api.github.com/repos/loklak/python-loklak-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/loklak/python-loklak-api/issues/4/comments","statuses_url":"https://api.github.com/repos/loklak/python-loklak-api/statuses/414d813d395f7d33740c5a6b2b1acf188abe86b4","head":{"label":"dhruvramani:master","ref":"master","sha":"414d813d395f7d33740c5a6b2b1acf188abe86b4","user":{"login":"dhruvramani","id":8494634,"avatar_url":"https://avatars.githubusercontent.com/u/8494634?v=3","gravatar_id":"","url":"https://api.github.com/users/dhruvramani","html_url":"https://github.com/dhruvramani","followers_url":"https://api.github.com/users/dhruvramani/followers","following_url":"https://api.github.com/users/dhruvramani/following{/other_user}","gists_url":"https://api.github.com/users/dhruvramani/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvramani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvramani/subscriptions","organizations_url":"https://api.github.com/users/dhruvramani/orgs","repos_url":"https://api.github.com/users/dhruvramani/repos","events_url":"https://api.github.com/users/dhruvramani/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvramani/received_events","type":"User","site_admin":false},"repo":{"id":47641273,"name":"python-loklak-api","full_name":"dhruvramani/python-loklak-api","owner":{"login":"dhruvramani","id":8494634,"avatar_url":"https://avatars.githubusercontent.com/u/8494634?v=3","gravatar_id":"","url":"https://api.github.com/users/dhruvramani","html_url":"https://github.com/dhruvramani","followers_url":"https://api.github.com/users/dhruvramani/followers","following_url":"https://api.github.com/users/dhruvramani/following{/other_user}","gists_url":"https://api.github.com/users/dhruvramani/gists{/gist_id}","starred_url":"https://api.github.com/users/dhruvramani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhruvramani/subscriptions","organizations_url":"https://api.github.com/users/dhruvramani/orgs","repos_url":"https://api.github.com/users/dhruvramani/repos","events_url":"https://api.github.com/users/dhruvramani/events{/privacy}","received_events_url":"https://api.github.com/users/dhruvramani/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dhruvramani/python-loklak-api","description":"The loklak API for Python which makes it very easy to use and as a strict replacement to the twitter API","fork":true,"url":"https://api.github.com/repos/dhruvramani/python-loklak-api","forks_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/forks","keys_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/teams","hooks_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/hooks","issue_events_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/issues/events{/number}","events_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/events","assignees_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/assignees{/user}","branches_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/branches{/branch}","tags_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/tags","blobs_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/statuses/{sha}","languages_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/languages","stargazers_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/stargazers","contributors_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/contributors","subscribers_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/subscribers","subscription_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/subscription","commits_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/contents/{+path}","compare_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/merges","archive_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/downloads","issues_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/issues{/number}","pulls_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/pulls{/number}","milestones_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/milestones{/number}","notifications_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/labels{/name}","releases_url":"https://api.github.com/repos/dhruvramani/python-loklak-api/releases{/id}","created_at":"2015-12-08T18:30:13Z","updated_at":"2015-12-08T18:30:14Z","pushed_at":"2015-12-08T18:40:55Z","git_url":"git://github.com/dhruvramani/python-loklak-api.git","ssh_url":"git@github.com:dhruvramani/python-loklak-api.git","clone_url":"https://github.com/dhruvramani/python-loklak-api.git","svn_url":"https://github.com/dhruvramani/python-loklak-api","homepage":null,"size":23,"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":"loklak:master","ref":"master","sha":"3615bf1630cf1b4ba348c2587199ff52e2a5fb1e","user":{"login":"loklak","id":11370631,"avatar_url":"https://avatars.githubusercontent.com/u/11370631?v=3","gravatar_id":"","url":"https://api.github.com/users/loklak","html_url":"https://github.com/loklak","followers_url":"https://api.github.com/users/loklak/followers","following_url":"https://api.github.com/users/loklak/following{/other_user}","gists_url":"https://api.github.com/users/loklak/gists{/gist_id}","starred_url":"https://api.github.com/users/loklak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loklak/subscriptions","organizations_url":"https://api.github.com/users/loklak/orgs","repos_url":"https://api.github.com/users/loklak/repos","events_url":"https://api.github.com/users/loklak/events{/privacy}","received_events_url":"https://api.github.com/users/loklak/received_events","type":"Organization","site_admin":false},"repo":{"id":45972822,"name":"python-loklak-api","full_name":"loklak/python-loklak-api","owner":{"login":"loklak","id":11370631,"avatar_url":"https://avatars.githubusercontent.com/u/11370631?v=3","gravatar_id":"","url":"https://api.github.com/users/loklak","html_url":"https://github.com/loklak","followers_url":"https://api.github.com/users/loklak/followers","following_url":"https://api.github.com/users/loklak/following{/other_user}","gists_url":"https://api.github.com/users/loklak/gists{/gist_id}","starred_url":"https://api.github.com/users/loklak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loklak/subscriptions","organizations_url":"https://api.github.com/users/loklak/orgs","repos_url":"https://api.github.com/users/loklak/repos","events_url":"https://api.github.com/users/loklak/events{/privacy}","received_events_url":"https://api.github.com/users/loklak/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/loklak/python-loklak-api","description":"The loklak API for Python which makes it very easy to use and as a strict replacement to the twitter API","fork":true,"url":"https://api.github.com/repos/loklak/python-loklak-api","forks_url":"https://api.github.com/repos/loklak/python-loklak-api/forks","keys_url":"https://api.github.com/repos/loklak/python-loklak-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loklak/python-loklak-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loklak/python-loklak-api/teams","hooks_url":"https://api.github.com/repos/loklak/python-loklak-api/hooks","issue_events_url":"https://api.github.com/repos/loklak/python-loklak-api/issues/events{/number}","events_url":"https://api.github.com/repos/loklak/python-loklak-api/events","assignees_url":"https://api.github.com/repos/loklak/python-loklak-api/assignees{/user}","branches_url":"https://api.github.com/repos/loklak/python-loklak-api/branches{/branch}","tags_url":"https://api.github.com/repos/loklak/python-loklak-api/tags","blobs_url":"https://api.github.com/repos/loklak/python-loklak-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loklak/python-loklak-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loklak/python-loklak-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/loklak/python-loklak-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loklak/python-loklak-api/statuses/{sha}","languages_url":"https://api.github.com/repos/loklak/python-loklak-api/languages","stargazers_url":"https://api.github.com/repos/loklak/python-loklak-api/stargazers","contributors_url":"https://api.github.com/repos/loklak/python-loklak-api/contributors","subscribers_url":"https://api.github.com/repos/loklak/python-loklak-api/subscribers","subscription_url":"https://api.github.com/repos/loklak/python-loklak-api/subscription","commits_url":"https://api.github.com/repos/loklak/python-loklak-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/loklak/python-loklak-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/loklak/python-loklak-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/loklak/python-loklak-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/loklak/python-loklak-api/contents/{+path}","compare_url":"https://api.github.com/repos/loklak/python-loklak-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loklak/python-loklak-api/merges","archive_url":"https://api.github.com/repos/loklak/python-loklak-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loklak/python-loklak-api/downloads","issues_url":"https://api.github.com/repos/loklak/python-loklak-api/issues{/number}","pulls_url":"https://api.github.com/repos/loklak/python-loklak-api/pulls{/number}","milestones_url":"https://api.github.com/repos/loklak/python-loklak-api/milestones{/number}","notifications_url":"https://api.github.com/repos/loklak/python-loklak-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loklak/python-loklak-api/labels{/name}","releases_url":"https://api.github.com/repos/loklak/python-loklak-api/releases{/id}","created_at":"2015-11-11T09:40:32Z","updated_at":"2015-12-08T00:29:10Z","pushed_at":"2015-12-08T18:40:55Z","git_url":"git://github.com/loklak/python-loklak-api.git","ssh_url":"git@github.com:loklak/python-loklak-api.git","clone_url":"https://github.com/loklak/python-loklak-api.git","svn_url":"https://github.com/loklak/python-loklak-api","homepage":null,"size":24,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/loklak/python-loklak-api/pulls/4"},"html":{"href":"https://github.com/loklak/python-loklak-api/pull/4"},"issue":{"href":"https://api.github.com/repos/loklak/python-loklak-api/issues/4"},"comments":{"href":"https://api.github.com/repos/loklak/python-loklak-api/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/loklak/python-loklak-api/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/loklak/python-loklak-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/loklak/python-loklak-api/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/loklak/python-loklak-api/statuses/414d813d395f7d33740c5a6b2b1acf188abe86b4"}}}}