def get_test_id(test):
    """Get the ID of the provided test"""
    try:
        return test.id()
    except:
        entry = 'nose.nose'
        try:
            import uuid
            return '%s.%s' % (entry, uuid.uuid1())
        except:
            return '%s.%s' % (entry, id(test))
