#NEWLINE# def test_tip_tip_distances_no_length( self ) : #NEWLINE# #INDENT# t = TreeNode . read ( io . StringIO ( '((a,b)c,(d,e)f);' ) ) #NEWLINE# exp_t = TreeNode . read ( io . StringIO ( '((a:0,b:0)c:0,(d:0,e:0)f:0);' ) ) #NEWLINE# exp_t_dm = exp_t . tip_tip_distances ( ) #NEWLINE# t_dm = npt . assert_warns ( RepresentationWarning , t . tip_tip_distances ) #NEWLINE# self . assertEqual ( t_dm , exp_t_dm ) #NEWLINE# for node in t . preorder ( ) : #NEWLINE# #INDENT# self . assertIs ( node . length , None )