Fix header test
This commit is contained in:
+5
-1
@@ -128,7 +128,11 @@ class TestAuth(unittest.TestCase):
|
|||||||
def test_header(self):
|
def test_header(self):
|
||||||
"""Test header data."""
|
"""Test header data."""
|
||||||
self.auth.token = "bar"
|
self.auth.token = "bar"
|
||||||
expected_header = {"TOKEN_AUTH": "bar", "user-agent": const.DEFAULT_USER_AGENT}
|
expected_header = {
|
||||||
|
"TOKEN_AUTH": "bar",
|
||||||
|
"user-agent": const.DEFAULT_USER_AGENT,
|
||||||
|
"content-type": "application/json",
|
||||||
|
}
|
||||||
self.assertDictEqual(self.auth.header, expected_header)
|
self.assertDictEqual(self.auth.header, expected_header)
|
||||||
|
|
||||||
def test_header_no_token(self):
|
def test_header_no_token(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user