class_docstr: Unit tests for all quick-start examples.
class_docstr_tok: ["Unit","tests","for","all","quick-start","examples","."]
docstr: Make sure one-step predictions are the same for OPF and Network API.
docstr_tok: ["Make","sure","one-step","predictions","are","the","same","for","OPF","and","Network","API","."]
code: def testOneStepPredictionsOpfVsNetwork(self):
      """Make sure one-step predictions are the same for OPF and Network API."""
      for resultPair in zip(
          self.oneStepPredictions["opf"],
          self.oneStepPredictions["network"],
      ):
          assert_approx_equal(
              *resultPair, err_msg="one-step 'opf' and 'network' differ"
          )
  
file_path: nupic-legacy/tests/unit/nupic/docs/examples_test.py
imports: import os
  import sys
  import unittest2
  import numpy
  from numpy.testing import assert_approx_equal
  import random
label_desc: Use image node_id 5 for calling the ExamplesTest obj's underlying member method code with example usage: obj.testOneStepPredictionsOpfVsNetwork() without return types