def METHOD_NAME(self):
    eq = self.assertEqual
    unless = self.assertTrue
    # First try strict.  Use a set here for testing the results because if
    # test_urllib2 is run before test_mimetypes, global state is modified
    # such that the 'all' set will have more items in it.
    all = set(self.db.guess_all_extensions('text/plain', strict=True))
    unless(all >= set(['.bat', '.c', '.h', '.ksh', '.pl', '.txt']))
    # And now non-strict
    all = self.db.guess_all_extensions('image/jpg', strict=False)
    all.sort()
    eq(all, ['.jpg'])
    # And now for no hits
    all = self.db.guess_all_extensions('image/jpg', strict=True)
    eq(all, [])