def test_tree_filter_table_none(self): rooted_nwk = io.StringIO("(O1:4.5,(O2:4,(a:1,b:1):2):0.5);") tree = skbio.TreeNode.read(rooted_nwk) table = Table(np.array([[0, 1, 3], [1, 1, 2]]), ['O1', 'O2'], ['S1', 'S2', 'S3']) actual = filter_table(table, tree) expected = table.filter(['O1', 'O2'], axis='observation') self.assertEqual(actual, expected)