def EqualVersions(version, baseline):
 baseline_tuple = baseline.version
 truncated_tuple = version.version[:len(baseline_tuple)]
 if (truncated_tuple == baseline_tuple):
  return True
 else:
  return False

def EqualVersions ( version , baseline ) : baseline_tuple = baseline . version truncated_tuple = version . version [ : len ( baseline_tuple ) ] if ( truncated_tuple == baseline_tuple ) : return True else : return False
test that a version is acceptable as compared to the baseline .