class_docstr: Test the Fast Stochastic Oscillator
class_docstr_tok: ["Test","the","Fast","Stochastic","Oscillator"]
docstr: Simple test of expected output from fast stochastic oscillator
docstr_tok: ["Simple","test","of","expected","output","from","fast","stochastic","oscillator"]
code: def test_fso_expected_basic(self):
      """
      Simple test of expected output from fast stochastic oscillator
      """
      fso = FastStochasticOscillator()
  
      today = pd.Timestamp("2015")
      assets = np.arange(3, dtype=np.float64)
      out = np.empty(shape=(3,), dtype=np.float64)
  
      highs = np.full((50, 3), 3, dtype=np.float64)
      lows = np.full((50, 3), 2, dtype=np.float64)
      closes = np.full((50, 3), 4, dtype=np.float64)
  
      fso.compute(today, assets, out, closes, lows, highs)
  
      # Expected %K
      assert_equal(out, np.full((3,), 200, dtype=np.float64))
  
imports: from __future__ import division
  from nose_parameterized import parameterized
  from six.moves import range
  import numpy
  import pandas
  import talib
  from numpy.random import RandomState
  from zipline.lib.adjusted_array import AdjustedArray
  from zipline.pipeline.data import USEquityPricing
  from zipline.pipeline.factors import BollingerBands, Aroon, FastStochasticOscillator, IchimokuKinkoHyo, LinearWeightedMovingAverage, RateOfChangePercentage, TrueRange, MovingAverageConvergenceDivergenceSignal, AnnualizedVolatility, RSI
  from zipline.testing import check_allclose, parameter_space
  from zipline.testing.fixtures import ZiplineTestCase
  from zipline.testing.predicates import assert_equal
  from .base import BaseUSEquityPipelineTestCase
label_desc: Use image node_id 1 for calling the TestFastStochasticOscillator obj's underlying member method code with example usage: obj.test_fso_expected_basic() without return types