示例#1
0
 def test_post_to_api(self, mock_post):
     c = CoverallsIoUploader()
     json_file = object()
     c.post_to_api(json_file)
     mock_post.called_once_with(
         CoverallsIoUploader.DEFAULT_API_URL,
         files={'json_file': json_file},
     )