{"action":"created","comment":{"url":"https://api.github.com/repos/pywinauto/pywinauto/pulls/comments/62257738","id":62257738,"diff_hunk":"@@ -92,7 +92,29 @@ def assert_system_time_is_equal_to_current_date_time(self,systemTime, now):\n         self.assertEqual(systemTime.wDay, now.day)\n \n     def set_calendar_state_into_multiselect(self):\n-        self.app['Common Controls Sample']['MCS_MULTISELECT'].WrapperObject().Click()         \n+        self.app['Common Controls Sample']['MCS_MULTISELECT'].WrapperObject().Click()\n+\n+    def test_can_get_today(self):\n+        \"\"\"Test getting the control's today field\"\"\"\n+        date = self.calendar.get_today()\n+        self.assert_system_time_is_equal_to_current_date_time(date, datetime.date.today())\n+\n+    def test_can_set_today(self):\n+        \"\"\"Test setting up the control's today field\"\"\"\n+        self.calendar.set_today(2016, 5, 1)\n+        self.assert_system_time_is_equal_to_current_date_time(self.calendar.get_today(),\n+                                                              datetime.date(2016, 5, 1))\n+\n+    def test_can_set_and_get_first_day_of_week(self):\n+        \"\"\"Test can set and get first day of the week\"\"\"\n+        self.calendar.set_first_weekday(4)\n+        self.assertEqual(4, self.calendar.get_first_weekday()[1])\n+\n+    def test_is_not_locale_when_setting_first_day_of_the_week(self):\n+        \"\"\"Test is locale changes to 1 when the first day of the week other than LOCALE_IFIRSTDAYOFWEEK,\"\"\"\n+        self.calendar.set_first_weekday(4)\n+        self.assertEqual(1, self.calendar.get_first_weekday()[0])","path":"pywinauto/unittests/test_Calendar.py","position":26,"original_position":26,"commit_id":"b8e647f0ff272f6b753a2f9642d627c77ea41b3a","original_commit_id":"b8e647f0ff272f6b753a2f9642d627c77ea41b3a","user":{"login":"vasily-v-ryabov","id":7419086,"avatar_url":"https://avatars.githubusercontent.com/u/7419086?v=3","gravatar_id":"","url":"https://api.github.com/users/vasily-v-ryabov","html_url":"https://github.com/vasily-v-ryabov","followers_url":"https://api.github.com/users/vasily-v-ryabov/followers","following_url":"https://api.github.com/users/vasily-v-ryabov/following{/other_user}","gists_url":"https://api.github.com/users/vasily-v-ryabov/gists{/gist_id}","starred_url":"https://api.github.com/users/vasily-v-ryabov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasily-v-ryabov/subscriptions","organizations_url":"https://api.github.com/users/vasily-v-ryabov/orgs","repos_url":"https://api.github.com/users/vasily-v-ryabov/repos","events_url":"https://api.github.com/users/vasily-v-ryabov/events{/privacy}","received_events_url":"https://api.github.com/users/vasily-v-ryabov/received_events","type":"User","site_admin":false},"body":"OK, why not check the whole tuple in both cases?","created_at":"2016-05-05T21:23:59Z","updated_at":"2016-05-05T21:23:59Z","html_url":"https://github.com/pywinauto/pywinauto/pull/195#discussion_r62257738","pull_request_url":"https://api.github.com/repos/pywinauto/pywinauto/pulls/195","_links":{"self":{"href":"https://api.github.com/repos/pywinauto/pywinauto/pulls/comments/62257738"},"html":{"href":"https://github.com/pywinauto/pywinauto/pull/195#discussion_r62257738"},"pull_request":{"href":"https://api.github.com/repos/pywinauto/pywinauto/pulls/195"}}},"pull_request":{"url":"https://api.github.com/repos/pywinauto/pywinauto/pulls/195","id":68942536,"html_url":"https://github.com/pywinauto/pywinauto/pull/195","diff_url":"https://github.com/pywinauto/pywinauto/pull/195.diff","patch_url":"https://github.com/pywinauto/pywinauto/pull/195.patch","issue_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/195","number":195,"state":"open","locked":false,"title":"Egor Sharov","user":{"login":"EgorSharov","id":9284952,"avatar_url":"https://avatars.githubusercontent.com/u/9284952?v=3","gravatar_id":"","url":"https://api.github.com/users/EgorSharov","html_url":"https://github.com/EgorSharov","followers_url":"https://api.github.com/users/EgorSharov/followers","following_url":"https://api.github.com/users/EgorSharov/following{/other_user}","gists_url":"https://api.github.com/users/EgorSharov/gists{/gist_id}","starred_url":"https://api.github.com/users/EgorSharov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EgorSharov/subscriptions","organizations_url":"https://api.github.com/users/EgorSharov/orgs","repos_url":"https://api.github.com/users/EgorSharov/repos","events_url":"https://api.github.com/users/EgorSharov/events{/privacy}","received_events_url":"https://api.github.com/users/EgorSharov/received_events","type":"User","site_admin":false},"body":"task N30","created_at":"2016-05-04T22:30:05Z","updated_at":"2016-05-05T21:23:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f02bab69e765b22d11954afd271552b9b8a465d4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pywinauto/pywinauto/pulls/195/commits","review_comments_url":"https://api.github.com/repos/pywinauto/pywinauto/pulls/195/comments","review_comment_url":"https://api.github.com/repos/pywinauto/pywinauto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/195/comments","statuses_url":"https://api.github.com/repos/pywinauto/pywinauto/statuses/b8e647f0ff272f6b753a2f9642d627c77ea41b3a","head":{"label":"EgorSharov:UIA","ref":"UIA","sha":"b8e647f0ff272f6b753a2f9642d627c77ea41b3a","user":{"login":"EgorSharov","id":9284952,"avatar_url":"https://avatars.githubusercontent.com/u/9284952?v=3","gravatar_id":"","url":"https://api.github.com/users/EgorSharov","html_url":"https://github.com/EgorSharov","followers_url":"https://api.github.com/users/EgorSharov/followers","following_url":"https://api.github.com/users/EgorSharov/following{/other_user}","gists_url":"https://api.github.com/users/EgorSharov/gists{/gist_id}","starred_url":"https://api.github.com/users/EgorSharov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EgorSharov/subscriptions","organizations_url":"https://api.github.com/users/EgorSharov/orgs","repos_url":"https://api.github.com/users/EgorSharov/repos","events_url":"https://api.github.com/users/EgorSharov/events{/privacy}","received_events_url":"https://api.github.com/users/EgorSharov/received_events","type":"User","site_admin":false},"repo":{"id":57872457,"name":"pywinauto","full_name":"EgorSharov/pywinauto","owner":{"login":"EgorSharov","id":9284952,"avatar_url":"https://avatars.githubusercontent.com/u/9284952?v=3","gravatar_id":"","url":"https://api.github.com/users/EgorSharov","html_url":"https://github.com/EgorSharov","followers_url":"https://api.github.com/users/EgorSharov/followers","following_url":"https://api.github.com/users/EgorSharov/following{/other_user}","gists_url":"https://api.github.com/users/EgorSharov/gists{/gist_id}","starred_url":"https://api.github.com/users/EgorSharov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EgorSharov/subscriptions","organizations_url":"https://api.github.com/users/EgorSharov/orgs","repos_url":"https://api.github.com/users/EgorSharov/repos","events_url":"https://api.github.com/users/EgorSharov/events{/privacy}","received_events_url":"https://api.github.com/users/EgorSharov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EgorSharov/pywinauto","description":"Windows GUI Automation with Python (64-bit Py3 compatible)","fork":true,"url":"https://api.github.com/repos/EgorSharov/pywinauto","forks_url":"https://api.github.com/repos/EgorSharov/pywinauto/forks","keys_url":"https://api.github.com/repos/EgorSharov/pywinauto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EgorSharov/pywinauto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EgorSharov/pywinauto/teams","hooks_url":"https://api.github.com/repos/EgorSharov/pywinauto/hooks","issue_events_url":"https://api.github.com/repos/EgorSharov/pywinauto/issues/events{/number}","events_url":"https://api.github.com/repos/EgorSharov/pywinauto/events","assignees_url":"https://api.github.com/repos/EgorSharov/pywinauto/assignees{/user}","branches_url":"https://api.github.com/repos/EgorSharov/pywinauto/branches{/branch}","tags_url":"https://api.github.com/repos/EgorSharov/pywinauto/tags","blobs_url":"https://api.github.com/repos/EgorSharov/pywinauto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EgorSharov/pywinauto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EgorSharov/pywinauto/git/refs{/sha}","trees_url":"https://api.github.com/repos/EgorSharov/pywinauto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EgorSharov/pywinauto/statuses/{sha}","languages_url":"https://api.github.com/repos/EgorSharov/pywinauto/languages","stargazers_url":"https://api.github.com/repos/EgorSharov/pywinauto/stargazers","contributors_url":"https://api.github.com/repos/EgorSharov/pywinauto/contributors","subscribers_url":"https://api.github.com/repos/EgorSharov/pywinauto/subscribers","subscription_url":"https://api.github.com/repos/EgorSharov/pywinauto/subscription","commits_url":"https://api.github.com/repos/EgorSharov/pywinauto/commits{/sha}","git_commits_url":"https://api.github.com/repos/EgorSharov/pywinauto/git/commits{/sha}","comments_url":"https://api.github.com/repos/EgorSharov/pywinauto/comments{/number}","issue_comment_url":"https://api.github.com/repos/EgorSharov/pywinauto/issues/comments{/number}","contents_url":"https://api.github.com/repos/EgorSharov/pywinauto/contents/{+path}","compare_url":"https://api.github.com/repos/EgorSharov/pywinauto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EgorSharov/pywinauto/merges","archive_url":"https://api.github.com/repos/EgorSharov/pywinauto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EgorSharov/pywinauto/downloads","issues_url":"https://api.github.com/repos/EgorSharov/pywinauto/issues{/number}","pulls_url":"https://api.github.com/repos/EgorSharov/pywinauto/pulls{/number}","milestones_url":"https://api.github.com/repos/EgorSharov/pywinauto/milestones{/number}","notifications_url":"https://api.github.com/repos/EgorSharov/pywinauto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EgorSharov/pywinauto/labels{/name}","releases_url":"https://api.github.com/repos/EgorSharov/pywinauto/releases{/id}","deployments_url":"https://api.github.com/repos/EgorSharov/pywinauto/deployments","created_at":"2016-05-02T07:30:06Z","updated_at":"2016-05-02T07:30:08Z","pushed_at":"2016-05-05T21:19:07Z","git_url":"git://github.com/EgorSharov/pywinauto.git","ssh_url":"git@github.com:EgorSharov/pywinauto.git","clone_url":"https://github.com/EgorSharov/pywinauto.git","svn_url":"https://github.com/EgorSharov/pywinauto","homepage":"http://pywinauto.github.io/","size":20388,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"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":"pywinauto:UIA","ref":"UIA","sha":"357a3576ce51a2d24881b2fca8a917d2c61a70e3","user":{"login":"pywinauto","id":12541065,"avatar_url":"https://avatars.githubusercontent.com/u/12541065?v=3","gravatar_id":"","url":"https://api.github.com/users/pywinauto","html_url":"https://github.com/pywinauto","followers_url":"https://api.github.com/users/pywinauto/followers","following_url":"https://api.github.com/users/pywinauto/following{/other_user}","gists_url":"https://api.github.com/users/pywinauto/gists{/gist_id}","starred_url":"https://api.github.com/users/pywinauto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pywinauto/subscriptions","organizations_url":"https://api.github.com/users/pywinauto/orgs","repos_url":"https://api.github.com/users/pywinauto/repos","events_url":"https://api.github.com/users/pywinauto/events{/privacy}","received_events_url":"https://api.github.com/users/pywinauto/received_events","type":"Organization","site_admin":false},"repo":{"id":36223210,"name":"pywinauto","full_name":"pywinauto/pywinauto","owner":{"login":"pywinauto","id":12541065,"avatar_url":"https://avatars.githubusercontent.com/u/12541065?v=3","gravatar_id":"","url":"https://api.github.com/users/pywinauto","html_url":"https://github.com/pywinauto","followers_url":"https://api.github.com/users/pywinauto/followers","following_url":"https://api.github.com/users/pywinauto/following{/other_user}","gists_url":"https://api.github.com/users/pywinauto/gists{/gist_id}","starred_url":"https://api.github.com/users/pywinauto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pywinauto/subscriptions","organizations_url":"https://api.github.com/users/pywinauto/orgs","repos_url":"https://api.github.com/users/pywinauto/repos","events_url":"https://api.github.com/users/pywinauto/events{/privacy}","received_events_url":"https://api.github.com/users/pywinauto/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pywinauto/pywinauto","description":"Windows GUI Automation with Python (64-bit Py3 compatible)","fork":false,"url":"https://api.github.com/repos/pywinauto/pywinauto","forks_url":"https://api.github.com/repos/pywinauto/pywinauto/forks","keys_url":"https://api.github.com/repos/pywinauto/pywinauto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pywinauto/pywinauto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pywinauto/pywinauto/teams","hooks_url":"https://api.github.com/repos/pywinauto/pywinauto/hooks","issue_events_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/events{/number}","events_url":"https://api.github.com/repos/pywinauto/pywinauto/events","assignees_url":"https://api.github.com/repos/pywinauto/pywinauto/assignees{/user}","branches_url":"https://api.github.com/repos/pywinauto/pywinauto/branches{/branch}","tags_url":"https://api.github.com/repos/pywinauto/pywinauto/tags","blobs_url":"https://api.github.com/repos/pywinauto/pywinauto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pywinauto/pywinauto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pywinauto/pywinauto/git/refs{/sha}","trees_url":"https://api.github.com/repos/pywinauto/pywinauto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pywinauto/pywinauto/statuses/{sha}","languages_url":"https://api.github.com/repos/pywinauto/pywinauto/languages","stargazers_url":"https://api.github.com/repos/pywinauto/pywinauto/stargazers","contributors_url":"https://api.github.com/repos/pywinauto/pywinauto/contributors","subscribers_url":"https://api.github.com/repos/pywinauto/pywinauto/subscribers","subscription_url":"https://api.github.com/repos/pywinauto/pywinauto/subscription","commits_url":"https://api.github.com/repos/pywinauto/pywinauto/commits{/sha}","git_commits_url":"https://api.github.com/repos/pywinauto/pywinauto/git/commits{/sha}","comments_url":"https://api.github.com/repos/pywinauto/pywinauto/comments{/number}","issue_comment_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/comments{/number}","contents_url":"https://api.github.com/repos/pywinauto/pywinauto/contents/{+path}","compare_url":"https://api.github.com/repos/pywinauto/pywinauto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pywinauto/pywinauto/merges","archive_url":"https://api.github.com/repos/pywinauto/pywinauto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pywinauto/pywinauto/downloads","issues_url":"https://api.github.com/repos/pywinauto/pywinauto/issues{/number}","pulls_url":"https://api.github.com/repos/pywinauto/pywinauto/pulls{/number}","milestones_url":"https://api.github.com/repos/pywinauto/pywinauto/milestones{/number}","notifications_url":"https://api.github.com/repos/pywinauto/pywinauto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pywinauto/pywinauto/labels{/name}","releases_url":"https://api.github.com/repos/pywinauto/pywinauto/releases{/id}","deployments_url":"https://api.github.com/repos/pywinauto/pywinauto/deployments","created_at":"2015-05-25T09:50:40Z","updated_at":"2016-05-05T17:43:42Z","pushed_at":"2016-05-05T21:21:00Z","git_url":"git://github.com/pywinauto/pywinauto.git","ssh_url":"git@github.com:pywinauto/pywinauto.git","clone_url":"https://github.com/pywinauto/pywinauto.git","svn_url":"https://github.com/pywinauto/pywinauto","homepage":"http://pywinauto.github.io/","size":21278,"stargazers_count":169,"watchers_count":169,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":48,"forks":68,"open_issues":48,"watchers":169,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pywinauto/pywinauto/pulls/195"},"html":{"href":"https://github.com/pywinauto/pywinauto/pull/195"},"issue":{"href":"https://api.github.com/repos/pywinauto/pywinauto/issues/195"},"comments":{"href":"https://api.github.com/repos/pywinauto/pywinauto/issues/195/comments"},"review_comments":{"href":"https://api.github.com/repos/pywinauto/pywinauto/pulls/195/comments"},"review_comment":{"href":"https://api.github.com/repos/pywinauto/pywinauto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pywinauto/pywinauto/pulls/195/commits"},"statuses":{"href":"https://api.github.com/repos/pywinauto/pywinauto/statuses/b8e647f0ff272f6b753a2f9642d627c77ea41b3a"}}}}