#NEWLINE# def assertSamplesEqualUpToTimestamp( self , a , b , msg = None ) : #NEWLINE# #INDENT# 'Assert that two samples are equal, ignoring timestamp differences.' #NEWLINE# self . assertEqual ( a . metric , b . metric , ( msg or ( 'Samples %s and %s have different metrics' % ( a , b ) ) ) ) #NEWLINE# self . assertEqual ( a . value , b . value , ( msg or ( 'Samples %s and %s have different values' % ( a , b ) ) ) ) #NEWLINE# self . assertEqual ( a . unit , b . unit , ( msg or ( 'Samples %s and %s have different units' % ( a , b ) ) ) ) #NEWLINE# self . assertEqual ( a . metadata , b . metadata , ( msg or ( 'Samples %s and %s have different metadata' % ( a , b ) ) ) )