def test_handle_quote_tick_updates_indicator(self): # Arrange indicator = DonchianChannel(10) tick = TestStubs.quote_tick_5decimal(AUDUSD_SIM.id) # Act indicator.handle_quote_tick(tick) # Assert assert indicator.has_inputs assert indicator.middle == 1.0000200000000001
def test_handle_quote_tick_updates_indicator(self): # Arrange indicator = DonchianChannel(10) tick = TestStubs.quote_tick_5decimal(AUDUSD_SIM.symbol) # Act indicator.handle_quote_tick(tick) # Assert self.assertTrue(indicator.has_inputs) self.assertEqual(1.0000200000000001, indicator.middle)