Home | History | Annotate | Download | only in test

Lines Matching refs:eq

19         eq = self.assertEqual
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"))
28 eq = self.assertEqual
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))
35 eq = self.assertEqual
38 eq(self.db.guess_type("foo.pyunit"),
40 eq(self.db.guess_extension("x-application/x-unittest"), ".pyunit")
43 eq = self.assertEqual
45 eq(self.db.guess_type('foo.xul', strict=True), (None, None))
46 eq(self.db.guess_extension('image/jpg', strict=True), None)
48 eq(self.db.guess_type('foo.xul', strict=False), ('text/xul', None))
49 eq(self.db.guess_extension('image/jpg', strict=False), '.jpg')
52 eq = self.assertEqual
62 eq(all, ['.jpg'])
65 eq(all, [])
86 eq = self.assertEqual
87 eq(self.db.guess_type("foo.txt"), ("text/plain", None))