<s> from datetime import datetime <EOL> from nose . tools import eq_ <EOL> import utils <EOL> class PullRequest ( utils . HttpMockTestCase ) : <EOL> def test_properties ( self ) : <EOL> pull_request = self . client . pull_requests . show ( '<STR_LIT>' , <NUM_LIT> ) <EOL> eq_ ( pull_request . state , '<STR_LIT>' ) <EOL> eq_ ( pull_request . base [ '<STR_LIT>' ] , <EOL> '<STR_LIT>' ) <EOL> eq_ ( pull_request . head [ '<STR_LIT>' ] , <EOL> '<STR_LIT>' ) <EOL> eq_ ( pull_request . issue_user [ '<STR_LIT>' ] , '<STR_LIT>' ) <EOL> eq_ ( pull_request . user [ '<STR_LIT>' ] , '<STR_LIT>' ) <EOL> eq_ ( pull_request . title , '<STR_LIT>' ) <EOL> eq_ ( len ( pull_request . body ) , <NUM_LIT> ) <EOL> eq_ ( pull_request . position , <NUM_LIT> ) <EOL> eq_ ( pull_request . number , <NUM_LIT> ) <EOL> eq_ ( pull_request . votes , <NUM_LIT:0> ) <EOL> eq_ ( pull_request . comments , <NUM_LIT:4> ) <EOL> eq_ ( pull_request . diff_url , <EOL> '<STR_LIT>' ) <EOL> eq_ ( pull_request . patch_url , <EOL> '<STR_LIT>' ) <EOL> eq_ ( pull_request . labels , [ ] ) <EOL> eq_ ( pull_request . html_url , <EOL> '<STR_LIT>' ) <EOL> eq_ ( pull_request . issue_created_at , datetime ( <NUM_LIT> , <NUM_LIT:4> , <NUM_LIT> , <NUM_LIT:15> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> eq_ ( pull_request . issue_updated_at , datetime ( <NUM_LIT> , <NUM_LIT:6> , <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> eq_ ( pull_request . created_at , datetime ( <NUM_LIT> , <NUM_LIT:6> , <NUM_LIT:20> , <NUM_LIT:16> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> eq_ ( pull_request . updated_at , datetime ( <NUM_LIT> , <NUM_LIT:6> , <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> eq_ ( pull_request . closed_at , datetime ( <NUM_LIT> , <NUM_LIT:6> , <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT> , <NUM_LIT> ) ) <EOL> eq_ ( len ( pull_request . discussion ) , <NUM_LIT> ) <EOL> eq_ ( pull_request . mergeable , True ) <EOL> def test_repr ( self ) : <EOL> pull_request = self . client . pull_requests . show ( '<STR_LIT>' , <NUM_LIT> ) <EOL> eq_ ( repr ( pull_request ) , '<STR_LIT>' ) <EOL> class PullRequestQueries ( utils . HttpMockTestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_list ( self ) : <EOL> pull_requests = self . client . pull_requests . list ( '<STR_LIT>' ) <EOL> eq_ ( len ( pull_requests ) , <NUM_LIT:1> ) <EOL> eq_ ( pull_requests [ <NUM_LIT:0> ] . title , '<STR_LIT>' ) <EOL> def test_list_with_page ( self ) : <EOL> pull_requests = self . client . pull_requests . list ( '<STR_LIT>' , <EOL> page = <NUM_LIT:2> ) <EOL> eq_ ( len ( pull_requests ) , <NUM_LIT> ) <EOL> eq_ ( pull_requests [ <NUM_LIT:1> ] . title , '<STR_LIT>' ) </s>
