'Try to guess if the file is a MOL2 file.
>>> from galaxy.datatypes.sniff import get_test_fname
>>> fname = get_test_fname(\'drugbank_drugs.mol2\')
>>> MOL2().sniff(fname)
True
>>> fname = get_test_fname(\'drugbank_drugs.cml\')
>>> MOL2().sniff(fname)
False'

def sniff(self, filename):

    if (count_special_lines('@<TRIPOS>MOLECULE', filename) > 0):
        return True
    else:
        return False
