#NEWLINE# def testDivMod( self ) : #NEWLINE# #INDENT# a = util . MathString ( '2' ) #NEWLINE# b = util . MathString ( '1.5' ) #NEWLINE# self . assertEquals ( divmod ( a , 1 ) , ( 2 , 0 ) ) #NEWLINE# self . assertEquals ( divmod ( a , 1.5 ) , ( 1.0 , 0.5 ) ) #NEWLINE# self . assertEquals ( divmod ( a , b ) , ( 1.0 , 0.5 ) ) #NEWLINE# self . assertEquals ( divmod ( 1 , a ) , ( 0 , 1 ) ) #NEWLINE# self . assertEquals ( divmod ( 1.5 , b ) , ( 0.0 , 1.5 ) ) #NEWLINE# self . assertEquals ( divmod ( b , a ) , ( 0.0 , 1.5 ) )