Lines Matching refs:datafile
107 def datafile(filename): function
121 with open(datafile('zoo.json'), 'r') as fh:
381 self.http = HttpMock(datafile('malformed.json'), {'status': '200'})
390 ({'status': '404'}, open(datafile('zoo.json'), 'rb').read()),
391 ({'status': '404'}, open(datafile('zoo.json'), 'rb').read()),
397 http = HttpMock(datafile('plus.json'), {'status': '200'})
407 discovery = open(datafile('plus.json')).read()
415 discovery = open(datafile('plus.json')).read()
424 discovery = open(datafile('plus.json')).read()
432 discovery = open(datafile('plus.json')).read()
444 discovery = open(datafile('plus.json')).read()
460 discovery = open(datafile('plus.json')).read()
466 discovery = open(datafile('plus.json')).read()
488 ({'status': '400'}, open(datafile('zoo.json'), 'rb').read()),
501 ({'status': '400'}, open(datafile('zoo.json'), 'rb').read()),
514 ({'status': '400'}, open(datafile('zoo.json'), 'rb').read()),
525 ({'status': '200'}, open(datafile('zoo.json'), 'rb').read()),
547 self.http = HttpMock(datafile('plus.json'), {'status': '200'})
559 with open(datafile('plus.json')) as f:
599 self.http = HttpMock(datafile('plus.json'), {'status': '200'})
608 with open(datafile('plus.json')) as f:
631 self.http = HttpMock(datafile('plus.json'), {'status': '200'})
674 http = HttpMock(datafile('zoo.json'), {'status': '200'})
696 http = HttpMock(datafile('zoo.json'), {'status': '200'})
706 http = HttpMock(datafile('zoo.json'), {'status': '200'})
715 http = HttpMock(datafile('zoo.json'), {'status': '200'})
725 http = HttpMock(datafile('zoo.json'), {'status': '200'})
735 http = HttpMock(datafile('zoo.json'), {'status': '200'})
742 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
750 self.http = HttpMock(datafile('plus.json'), {'status': '200'})
759 ({'status': '200'}, open(datafile('zoo.json'), 'rb').read()),
770 self.http = HttpMock(datafile('plus.json'), {'status': '200'})
779 discovery = open(datafile('plus.json')).read()
785 discovery = open(datafile('plus.json')).read()
793 discovery = open(datafile('zoo.json')).read()
801 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
812 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
822 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
830 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
839 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
845 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
847 request = zoo.animals().crossbreed(media_body=datafile('small.png'))
852 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
856 zoo.animals().insert(media_body=datafile('smiley.png'))
862 zoo.animals().insert(media_body=datafile('small.jpg'))
868 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
871 request = zoo.animals().insert(media_body=datafile('small.png'))
879 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
883 zoo.animals().insert(media_body=datafile('small-png'))
888 request = zoo.animals().insert(media_body=datafile('small-png'),
897 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
901 zoo.animals().insert(media_body=datafile('smiley.png'), body={})
907 zoo.animals().insert(media_body=datafile('small.jpg'), body={})
913 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
916 request = zoo.animals().insert(media_body=datafile('small.png'), body={})
919 with open(datafile('small.png'), 'rb') as f:
939 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
946 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
949 media_upload = MediaFileUpload(datafile('small.png'), resumable=True)
1006 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
1009 media_upload = MediaFileUpload(datafile('small.png'), resumable=True)
1054 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
1057 media_upload = MediaFileUpload(datafile('small.png'), resumable=True)
1080 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
1083 media_upload = MediaFileUpload(datafile('small.png'), resumable=True)
1099 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
1102 media_upload = MediaFileUpload(datafile('small.png'), resumable=True)
1141 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
1165 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
1194 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
1224 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
1275 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
1298 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
1346 http = HttpMock(datafile('zoo.json'), {'status': '200'})
1423 self.http = HttpMock(datafile('zoo.json'), {'status': '200'})
1426 media_upload = MediaFileUpload(datafile('empty'), resumable=True)
1450 self.http = HttpMock(datafile('tasks.json'), {'status': '200'})
1456 self.http = HttpMock(datafile('tasks.json'), {'status': '200'})
1464 self.http = HttpMock(datafile('tasks.json'), {'status': '200'})
1474 self.http = HttpMock(datafile('bigquery.json'), {'status': '200'})
1484 self.http = HttpMock(datafile('logging.json'), {'status': '200'})
1493 self.http = HttpMock(datafile('latitude.json'), {'status': '200'})
1498 self.http = HttpMock(datafile('drive.json'), {'status': '200'})
1504 self.http = HttpMock(datafile('drive.json'), {'status': '200'})
1517 http = HttpMock(datafile('zoo.json'), {'status': '200'})