-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6aae19
commit 96fdf96
Showing
5 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4.0.9 | ||
4.0.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import re | ||
|
||
from unittest import TestCase | ||
|
||
from utils.common import sanitize_header_name | ||
|
||
class TestCommon(TestCase): | ||
def init(self, *args, **kwargs): | ||
super(TestCommon, self).__init__(*args, **kwargs) | ||
|
||
def test_sanitize_header_name_accept(self): | ||
## Given | ||
header = "accept" | ||
|
||
#When | ||
result = sanitize_header_name(header) | ||
|
||
## Then | ||
self.assertEqual("Accept", result) | ||
|
||
def test_sanitize_header_name_contenttype(self): | ||
## Given | ||
header = "content-type" | ||
|
||
#When | ||
result = sanitize_header_name(header) | ||
|
||
## Then | ||
self.assertEqual("Content-Type", result) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters