def METHOD_NAME(self):
    eq = self.assertEqual
    eq(self.db.guess_type("foo.html"), ("text/html", None))
    eq(self.db.guess_type("foo.tgz"), ("application/x-tar", "gzip"))
    eq(self.db.guess_type("foo.tar.gz"), ("application/x-tar", "gzip"))
    eq(self.db.guess_type("foo.tar.Z"), ("application/x-tar", "compress"))
    eq(self.db.guess_type("foo.tar.bz2"), ("application/x-tar", "bzip2"))
    eq(self.db.guess_type("foo.tar.xz"), ("application/x-tar", "xz"))