def test_indirect_age_standardization(self): indirect = np.array(sm.indirect_age_standardization( self.e, self.b, self.s_e, self.s_b, self.n)).round(8) indirect_exp = np.array([[0.02372382, 0.01940230, 0.02900789], [0.02610803, .02154304, 0.03164035]]) self.assertEquals( list(indirect.flatten()), list(indirect_exp.flatten()))