Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
logilab-mtconverter
Commits
5ab5c087d00e
Commit
eb446018
authored
Aug 01, 2014
by
Rémi Cardona
Browse files
[test] .123 files are identified as Lotus files in Gentoo's /etc/mime.types
parent
f70fb2155282
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/unittest_utils.py
View file @
5ab5c087
...
...
@@ -141,7 +141,7 @@ class GuessMimetymeAndEncodingTC(TestCase):
self
.
assertEqual
(
encoding
,
None
)
def
test_set_mime_and_encoding_unknwon_ext
(
self
):
format
,
encoding
=
guess_mimetype_and_encoding
(
filename
=
u
"foo.
123
"
,
data
=
"xxx"
)
format
,
encoding
=
guess_mimetype_and_encoding
(
filename
=
u
"foo.
789
"
,
data
=
"xxx"
)
self
.
assertEqual
(
format
,
u
'application/octet-stream'
)
self
.
assertEqual
(
encoding
,
None
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment