diff options
| author | Adam Hupp <adam@hupp.org> | 2010-11-21 23:02:34 -0800 |
|---|---|---|
| committer | Adam Hupp <adam@hupp.org> | 2010-11-21 23:02:34 -0800 |
| commit | f082313f250b9b8b1d393ad0740aef09afd86244 (patch) | |
| tree | 7166e2cad7551037d1c4e9f97734da40007eab40 /test.py | |
| parent | 4bdd270b248156e81eb5056a17751526e7ba0161 (diff) | |
| download | python-magic-f082313f250b9b8b1d393ad0740aef09afd86244.tar.gz | |
Fix unit test
- remove charset from textfile mimetype that is now gone (libmagic
version change? environment change? sunspots?)
- Don't run filetype tests when testing charsets
Diffstat (limited to 'test.py')
| -rw-r--r-- | test.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -11,7 +11,7 @@ testfile = [ ("test.pdf", "PDF document, version 1.2", "application/pdf"), ("test.gz", 'gzip compressed data, was "test", from Unix, last modified: ' 'Sat Jun 28 18:32:52 2008', "application/x-gzip"), - ("text.txt", "ASCII text", "text/plain; charset=us-ascii"), + ("text.txt", "ASCII text", "text/plain"), ] testFileEncoding = [('text-iso8859-1.txt', 'iso-8859-1')] @@ -47,7 +47,7 @@ class TestMagic(unittest.TestCase): class TestMagicMime(TestMagic): mime = True -class TestMagicMimeEncoding(TestMagic): +class TestMagicMimeEncoding(unittest.TestCase): def setUp(self): self.m = Magic(mime_encoding=True) |
