def test_unique_categories(self): tested = seenopsis.VariableInfo(0, df["0"], 0) actual = 7 self.assertAlmostEqual(tested.unique_categories(), actual)
def test_sd_of_var(self): tested = seenopsis.VariableInfo(0, df["0"], 0) actual = 18.35 self.assertAlmostEqual(tested.sd_of_var(), actual, 1)
def test_upper_iqr(self): tested = seenopsis.VariableInfo(0, df["0"], 0) actual = 6.5 self.assertAlmostEqual(tested.upper_iqr(), actual, 1)
def test_maximum_of_var(self): tested = seenopsis.VariableInfo(0, df["0"], 0) actual = 56 self.assertAlmostEqual(tested.maximum_of_var(), actual, 1)
def test_median(self): tested = seenopsis.VariableInfo(0, df["0"], 0) actual = 4 self.assertAlmostEqual(tested.median_of_var(), actual, 1)