コード例 #1
0
 def test_get_lexer_not_found(self):
     assert get_lexer('xxx/yyy') is None
コード例 #2
0
 def test_get_lexer(self, mime, explicit_json, body, expected_lexer_name):
     lexer = get_lexer(mime, body=body, explicit_json=explicit_json)
     assert lexer is not None
     assert lexer.name == expected_lexer_name
コード例 #3
0
 def test_get_lexer(self, mime):
     lexer = get_lexer(mime)
     assert lexer is not None
     assert lexer.name == 'JSON'
コード例 #4
0
ファイル: test_output.py プロジェクト: d135-1r43/httpie
 def test_get_lexer_not_found(self):
     assert get_lexer('xxx/yyy') is None
コード例 #5
0
 def test_get_lexer(self, mime, explicit_json, body, expected_lexer_name):
     lexer = get_lexer(mime, body=body, explicit_json=explicit_json)
     assert lexer is not None
     assert lexer.name == expected_lexer_name