'RSI indicator should be the same for two price series with the same
returns, even if the prices are different.'

def test_rsi_same_returns(self):

    rsi = RSI()
    today = np.datetime64(1, 'ns')
    assets = np.arange(2)
    out = np.empty((2,), dtype=float)
    example_case = np.array([46.125, 47.125, 46.4375, 46.9375, 44.9375, 44.25, 44.625, 45.75, 47.8125, 47.5625, 47.0, 44.5625, 46.3125, 47.6875, 46.6875])
    double = (example_case * 2)
    closes = np.vstack((example_case, double)).T
    rsi.compute(today, assets, out, closes)
    self.assertAlmostEqual(out[0], out[1])
