def test_gap_mode_include_gaps_treated_as_single_char(self):
        msa = TabularMSA([DNA('.'),
                          DNA('-')])
        actual = msa.conservation(metric='inverse_shannon_uncertainty',
                                  gap_mode='include')
        expected = np.array([1. - scipy.stats.entropy([1.0], base=5)])
        npt.assert_array_equal(actual, expected)
dataset/ETHPy150Open biocore/scikit-bio/skbio/alignment/tests/test_tabular_msa.py/TestConservation.test_gap_mode_include_gaps_treated_as_single_char/original