def test_calc_shared_phylotypes_pairwise(self): """_calc_shared_phylotypes_pairwise works as expected""" self.assertEqual(_calc_shared_phylotypes_pairwise(self.otu_table, 0, 0), 5) self.assertEqual(_calc_shared_phylotypes_pairwise(self.otu_table, 0, 1), 2) self.assertEqual(_calc_shared_phylotypes_pairwise(self.otu_table, 0, 2), 3) self.assertEqual(_calc_shared_phylotypes_pairwise(self.otu_table, 2, 2), 3)
def test_calc_shared_phylotypes_pairwise(self): """_calc_shared_phylotypes_pairwise works as expected""" #self.assertEqual(_calc_shared_phylotypes_pairwise(self.otu_table, 0, 0), 5) #self.assertEqual(_calc_shared_phylotypes_pairwise(self.otu_table, 0, 1), 2) #self.assertEqual(_calc_shared_phylotypes_pairwise(self.otu_table, 0, 2), 3) #self.assertEqual(_calc_shared_phylotypes_pairwise(self.otu_table, 2, 2), 3) self.assertEqual( _calc_shared_phylotypes_pairwise( self.otu_table, 'S1', 'S1'), 5) self.assertEqual( _calc_shared_phylotypes_pairwise( self.otu_table, 'S1', 'S2'), 2) self.assertEqual( _calc_shared_phylotypes_pairwise( self.otu_table, 'S1', 'S3'), 3) self.assertEqual( _calc_shared_phylotypes_pairwise( self.otu_table, 'S3', 'S3'), 3)