#NEWLINE# def test_weighted_minimal_trees( self ) : #NEWLINE# #INDENT# tree = TreeNode . read ( StringIO ( '(OTU1:0.25, OTU2:0.25)root;' ) ) #NEWLINE# actual = weighted_unifrac ( [ 1 , 0 ] , [ 0 , 0 ] , [ 'OTU1' , 'OTU2' ] , tree ) #NEWLINE# expected = 0.25 #NEWLINE# self . assertEqual ( actual , expected )