def test_combine_true_squeeze_true(self): expected = np.concatenate([self.x, self.y]) result = base._squeeze_cat([self.x, self.y], True, True) npt.assert_equal(result, expected)
def test_combine_false_squeeze_true_more_than_one_item(self): expected = [self.x, self.y] result = base._squeeze_cat([self.x, self.y], False, True) npt.assert_equal(result, expected)
def test_combine_false_squeeze_true_one_item(self): expected = self.x result = base._squeeze_cat([self.x], False, True) npt.assert_equal(result, expected)
def test_combine_false_squeeze_false(self): expected = [self.x, self.y] result = base._squeeze_cat([self.x, self.y], False, False) npt.assert_equal(result, expected)