def isTestModule(modulename):
    """
    Determine whether a module is a test module
    by given module name.
    """
    filename = modulename.split('.')[-1]
    return '.test.' in modulename and filename.startswith('test')
