Commits

Ian Cordasco  committed a811e1a

One more test

  • Participants
  • Parent commits eb6153a

Comments (0)

Files changed (2)

File tests/json/branch

+{"commit": {"committer": {"following_url": "https://api.github.com/users/sigmavirus24/following", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "url": "https://api.github.com/users/sigmavirus24", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "avatar_url": "https://secure.gravatar.com/avatar/c148356d89f925e692178bee1d93acf7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "gravatar_id": "c148356d89f925e692178bee1d93acf7", "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "login": "sigmavirus24", "type": "User", "id": 240830, "followers_url": "https://api.github.com/users/sigmavirus24/followers"}, "author": {"following_url": "https://api.github.com/users/sigmavirus24/following", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "url": "https://api.github.com/users/sigmavirus24", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "avatar_url": "https://secure.gravatar.com/avatar/c148356d89f925e692178bee1d93acf7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "gravatar_id": "c148356d89f925e692178bee1d93acf7", "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "login": "sigmavirus24", "type": "User", "id": 240830, "followers_url": "https://api.github.com/users/sigmavirus24/followers"}, "url": "https://api.github.com/repos/sigmavirus24/github3.py/commits/a21ded00eb40383b7496c00b598555665b751e95", "comments_url": "https://api.github.com/repos/sigmavirus24/github3.py/commits/a21ded00eb40383b7496c00b598555665b751e95/comments", "sha": "a21ded00eb40383b7496c00b598555665b751e95", "parents": [{"url": "https://api.github.com/repos/sigmavirus24/github3.py/commits/5d8ef57b55797bb79b045e0107919e5ebbe5ee98", "sha": "5d8ef57b55797bb79b045e0107919e5ebbe5ee98"}], "commit": {"committer": {"date": "2012-11-22T03:38:47Z", "email": "graffatcolmingov@gmail.com", "name": "Ian Cordasco"}, "author": {"date": "2012-11-22T03:38:47Z", "email": "graffatcolmingov@gmail.com", "name": "Ian Cordasco"}, "url": "https://api.github.com/repos/sigmavirus24/github3.py/git/commits/a21ded00eb40383b7496c00b598555665b751e95", "tree": {"url": "https://api.github.com/repos/sigmavirus24/github3.py/git/trees/d49c1850effb6d95d2168d042395730116f642d4", "sha": "d49c1850effb6d95d2168d042395730116f642d4"}, "comment_count": 0, "message": "Upgrade development to 0.2"}}, "_links": {"self": "https://api.github.com/repos/sigmavirus24/github3.py/branches/master", "html": "https://github.com/sigmavirus24/github3.py/tree/master"}, "name": "master"}

File tests/test_repos.py

                      )
 
         expect(self.repo.blob('3ceb856e2f14e9669fed6384e58c9a1590a2314f')
-                ).isinstance(github3.git.Blob)
+               ).isinstance(github3.git.Blob)
+        self.mock_assertions()
+
+    def test_branch(self):
+        self.request.return_value = generate_response('branch', 200)
+        self.args = ('get', self.api + 'branches/master')
+
+        expect(self.repo.branch('master')).isinstance(github3.repos.Branch)
         self.mock_assertions()