def Test(HeartbeatIntervalSeconds, PerfCounterObject):
    prune_perfs(PerfCounterObject)
    (NewHeartbeatIntervalSeconds, NewPerfs) = ReadOMSAgentConf(HeartbeatIntervalSeconds, PerfCounterObject)
    if (NewHeartbeatIntervalSeconds != HeartbeatIntervalSeconds):
        return [(- 1)]
    PerfCounterObject.sort()
    for perf in PerfCounterObject:
        perf['PerformanceCounter'].sort()
        perf['AllInstances'] = True
    NewPerfs.sort()
    for perf in NewPerfs:
        perf['PerformanceCounter'].sort()
    if (PerfCounterObject != NewPerfs):
        return [(- 1)]
    return [0]
def Test(HeartbeatIntervalSeconds, PerfCounterObject):
    prune_perfs(PerfCounterObject)
    (NewHeartbeatIntervalSeconds, NewPerfs) = ReadOMSAgentConf(HeartbeatIntervalSeconds, PerfCounterObject)
    if (NewHeartbeatIntervalSeconds != HeartbeatIntervalSeconds):
        return [(- 1)]
    PerfCounterObject.sort()
    for perf in PerfCounterObject:
        perf['PerformanceCounter'].sort()
        perf['AllInstances'] = True
    NewPerfs.sort()
    for perf in NewPerfs:
        perf['PerformanceCounter'].sort()
    if (PerfCounterObject != NewPerfs):
        return [(- 1)]
    return [0]