#NEWLINE# def test_unweighted_unifrac_zero_counts( self ) : #NEWLINE# #INDENT# actual = unweighted_unifrac ( [ 1 , 1 , 1 , 0 , 0 ] , [ 0 , 0 , 0 , 0 , 0 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 1.0 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( [ 0 , 0 , 0 , 0 , 0 ] , [ 0 , 0 , 0 , 0 , 0 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.0 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( [ ] , [ ] , [ ] , expected . t1 ) #NEWLINE# expected = 0.0 #NEWLINE# self . assertAlmostEqual ( actual , expected )