#NEWLINE# def test_time_tag( self ) : #NEWLINE# #INDENT# if _debug : #NEWLINE# #INDENT# TestTime . _debug ( 'test_time_tag' ) #NEWLINE# #UNINDENT# tag = Tag ( Tag . applicationTagClass , Tag . timeAppTag , 1 , xtob ( '01020304' ) ) #NEWLINE# obj = Time ( tag ) #NEWLINE# assert ( obj . value == ( 1 , 2 , 3 , 4 ) ) #NEWLINE# tag = Tag ( Tag . applicationTagClass , Tag . booleanAppTag , 0 , xtob ( '' ) ) #NEWLINE# with self . assertRaises ( InvalidTag ) : #NEWLINE# #INDENT# Time ( tag ) #NEWLINE# #UNINDENT# tag = Tag ( Tag . contextTagClass , 0 , 1 , xtob ( 'ff' ) ) #NEWLINE# with self . assertRaises ( InvalidTag ) : #NEWLINE# #INDENT# Time ( tag ) #NEWLINE# #UNINDENT# tag = Tag ( Tag . openingTagClass , 0 ) #NEWLINE# with self . assertRaises ( InvalidTag ) : #NEWLINE# #INDENT# Time ( tag )