File tree Expand file tree Collapse file tree 2 files changed +7
-40
lines changed Expand file tree Collapse file tree 2 files changed +7
-40
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
- from ....tests .async_base import AsyncNbviewerTestCase
3
+ import requests
4
+ from ....tests .base import NBViewerTestCase
4
5
5
-
6
- class ForceUTF8TestCase (AsyncNbviewerTestCase ):
6
+ class ForceUTF8TestCase (NBViewerTestCase ):
7
7
def test_utf8 (self ):
8
8
""" #507, bitbucket returns no content headers, but _is_ serving utf-8
9
9
"""
10
- response = self . fetch (
11
- '/urls/bitbucket.org/sandiego206/asdasd/raw/master/Untitled.ipynb'
10
+ response = requests . get (
11
+ self . url ( '/urls/bitbucket.org/sandiego206/asdasd/raw/master/Untitled.ipynb' )
12
12
)
13
- self .assertEqual (response .code , 200 )
14
- self .assertIn ("ñ" , response .body )
13
+ self .assertEqual (response .status_code , 200 )
14
+ self .assertIn ("ñ" , response .content )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments