Home | History | Annotate | Download | only in test

Lines Matching refs:guess_type

20         eq(self.db.guess_type("foo.html"), ("text/html", None))
21 eq(self.db.guess_type("foo.tgz"), ("application/x-tar", "gzip"))
22 eq(self.db.guess_type("foo.tar.gz"), ("application/x-tar", "gzip"))
23 eq(self.db.guess_type("foo.tar.Z"), ("application/x-tar", "compress"))
24 eq(self.db.guess_type("foo.tar.bz2"), ("application/x-tar", "bzip2"))
25 eq(self.db.guess_type("foo.tar.xz"), ("application/x-tar", "xz"))
29 guess_type = self.db.guess_type
30 eq(guess_type("data:,thisIsTextPlain"), ("text/plain", None))
31 eq(guess_type("data:;base64,thisIsTextPlain"), ("text/plain", None))
32 eq(guess_type("data:text/x-foo,thisIsTextXFoo"), ("text/x-foo", None))
38 eq(self.db.guess_type("foo.pyunit"),
45 eq(self.db.guess_type('foo.xul', strict=True), (None, None))
48 eq(self.db.guess_type('foo.xul', strict=False), ('text/xul', None))
87 eq(self.db.guess_type("foo.txt"), ("text/plain", None))