def test_stream_all_ticks(self):
        # Stream to Tick #1 (GOOG)
        self.price_handler.stream_next_tick()
        self.assertEqual(
            self.price_handler.tickers["GOOG"]["timestamp"].strftime(
                "%d-%m-%Y %H:%M:%S.%f"
            ), 
            "01-02-2016 00:00:01.358000"
        )
        self.assertEqual(
            self.price_handler.tickers["GOOG"]["bid"], 
            Decimal("683.56000")
        )
        self.assertEqual(
            self.price_handler.tickers["GOOG"]["ask"], 
            Decimal("683.58000")
        )

        # Stream to Tick #2 (AMZN)
        self.price_handler.stream_next_tick()
        self.assertEqual(
            self.price_handler.tickers["AMZN"]["timestamp"].strftime(
                "%d-%m-%Y %H:%M:%S.%f"
            ), 
            "01-02-2016 00:00:01.562000"
        )
        self.assertEqual(
            self.price_handler.tickers["AMZN"]["bid"], 
            Decimal("502.10001")
        )
        self.assertEqual(
            self.price_handler.tickers["AMZN"]["ask"], 
            Decimal("502.11999")
        )

        # Stream to Tick #3 (MSFT)
        self.price_handler.stream_next_tick()
        self.assertEqual(
            self.price_handler.tickers["MSFT"]["timestamp"].strftime(
                "%d-%m-%Y %H:%M:%S.%f"
            ), 
            "01-02-2016 00:00:01.578000"
        )
        self.assertEqual(
            self.price_handler.tickers["MSFT"]["bid"], 
            Decimal("50.14999")
        )
        self.assertEqual(
            self.price_handler.tickers["MSFT"]["ask"], 
            Decimal("50.17001")
        )

        # Stream to Tick #10 (GOOG)
        for i in range(4, 11):
            self.price_handler.stream_next_tick()
        self.assertEqual(
            self.price_handler.tickers["GOOG"]["timestamp"].strftime(
                "%d-%m-%Y %H:%M:%S.%f"
            ), 
            "01-02-2016 00:00:05.215000"
        )
        self.assertEqual(
            self.price_handler.tickers["GOOG"]["bid"], 
            Decimal("683.56001")
        )
        self.assertEqual(
            self.price_handler.tickers["GOOG"]["ask"], 
            Decimal("683.57999")
        )

        # Stream to Tick #20 (GOOG)
        for i in range(11, 21):
            self.price_handler.stream_next_tick()
        self.assertEqual(
            self.price_handler.tickers["MSFT"]["timestamp"].strftime(
                "%d-%m-%Y %H:%M:%S.%f"
            ), 
            "01-02-2016 00:00:09.904000"
        )
        self.assertEqual(
            self.price_handler.tickers["MSFT"]["bid"], 
            Decimal("50.15000")
        )
        self.assertEqual(
            self.price_handler.tickers["MSFT"]["ask"], 
            Decimal("50.17000")
        )

        # Stream to Tick #30 (final tick, AMZN)
        for i in range(21, 31):
            self.price_handler.stream_next_tick()
        self.assertEqual(
            self.price_handler.tickers["AMZN"]["timestamp"].strftime(
                "%d-%m-%Y %H:%M:%S.%f"
            ), 
            "01-02-2016 00:00:14.616000"
        )
        self.assertEqual(
            self.price_handler.tickers["AMZN"]["bid"], 
            Decimal("502.10015")
        )
        self.assertEqual(
            self.price_handler.tickers["AMZN"]["ask"], 
            Decimal("502.11985")
        )
The initialisation of the class will open the three
dataset/ETHPy150Open mhallsmoore/qstrader/price_handler/price_handler_test.py/TestPriceHandlerSimpleCase.test_stream_all_ticks