@@ -22,10 +22,10 @@ def test_try_match(self):
22
22
self .assertTrue (try_match ('www.com/foo' , 'www.com/fo*' ))
23
23
24
24
def test_flexible_str_str (self ):
25
- self .assertEquals (flexible_str ('Bar, Foo, Qux' ), 'Bar, Foo, Qux' )
25
+ self .assertEqual (flexible_str ('Bar, Foo, Qux' ), 'Bar, Foo, Qux' )
26
26
27
27
def test_flexible_str_set (self ):
28
- self .assertEquals (flexible_str ({'Foo' , 'Bar' , 'Qux' }),
28
+ self .assertEqual (flexible_str ({'Foo' , 'Bar' , 'Qux' }),
29
29
'Bar, Foo, Qux' )
30
30
31
31
def test_serialize_options (self ):
@@ -43,24 +43,24 @@ def test_serialize_options(self):
43
43
def test_get_allow_headers_empty (self ):
44
44
options = serialize_options ({'allow_headers' : r'*' })
45
45
46
- self .assertEquals (get_allow_headers (options , '' ), None )
47
- self .assertEquals (get_allow_headers (options , None ), None )
46
+ self .assertEqual (get_allow_headers (options , '' ), None )
47
+ self .assertEqual (get_allow_headers (options , None ), None )
48
48
49
49
def test_get_allow_headers_matching (self ):
50
50
options = serialize_options ({'allow_headers' : r'*' })
51
51
52
- self .assertEquals (get_allow_headers (options , 'X-FOO' ), 'X-FOO' )
53
- self .assertEquals (
52
+ self .assertEqual (get_allow_headers (options , 'X-FOO' ), 'X-FOO' )
53
+ self .assertEqual (
54
54
get_allow_headers (options , 'X-Foo, X-Bar' ),
55
55
'X-Bar, X-Foo'
56
56
)
57
57
58
58
def test_get_allow_headers_matching_none (self ):
59
59
options = serialize_options ({'allow_headers' : r'X-FLASK-.*' })
60
60
61
- self .assertEquals (get_allow_headers (options , 'X-FLASK-CORS' ),
61
+ self .assertEqual (get_allow_headers (options , 'X-FLASK-CORS' ),
62
62
'X-FLASK-CORS' )
63
- self .assertEquals (
63
+ self .assertEqual (
64
64
get_allow_headers (options , 'X-NOT-FLASK-CORS' ),
65
65
''
66
66
)
0 commit comments