def test_merge_seqs(self): d1 = pd.Series([skbio.DNA('ACGT', metadata={'id': 'abc'}), skbio.DNA('ACCT', metadata={'id': 'xyz'})], index=['f1', 'f2']) d2 = pd.Series([skbio.DNA('ACGT', metadata={'id': 'abc'}), skbio.DNA('ACCA', metadata={'id': 'wxy'})], index=['f1', 'f3']) obs = merge_seqs([d1, d2]) exp = pd.Series([skbio.DNA('ACGT', metadata={'id': 'abc'}), skbio.DNA('ACCT', metadata={'id': 'xyz'}), skbio.DNA('ACCA', metadata={'id': 'wxy'})], index=['f1', 'f2', 'f3']) pdt.assert_series_equal(obs, exp)