File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ def test_get_type_by_contents(self):
55
55
56
56
def test_get_type (self ):
57
57
# File that doesn't exist - get type by name
58
- imgpng = Mime .get_type (example_file ("test.png " ))
59
- self .check_mimetype (imgpng , 'image' , 'png ' )
58
+ imgpng = Mime .get_type (example_file ("test.gif " ))
59
+ self .check_mimetype (imgpng , 'image' , 'gif ' )
60
60
61
61
# File that does exist - get type by contents
62
62
imgpng = Mime .get_type (example_file ("png_file" ))
@@ -80,7 +80,7 @@ def test_get_type(self):
80
80
81
81
def test_get_type2 (self ):
82
82
# File that doesn't exist - use the name
83
- self .check_mimetype (Mime .get_type2 (example_file ('test.png ' )), 'image' , 'png ' )
83
+ self .check_mimetype (Mime .get_type2 (example_file ('test.gif ' )), 'image' , 'gif ' )
84
84
85
85
# File that does exist - use the contents
86
86
self .check_mimetype (Mime .get_type2 (example_file ('png_file' )), 'image' , 'png' )
You can’t perform that action at this time.
0 commit comments