def setShares(self,shares):
        self.params['shares'] = shares
        self.params['capital'] = self.params['last']*self.params['shares']
Test for not firing on zone leave.
dataset/ETHPy150Open cmorgan/trading-with-python/lib/classes.py/Spread.setShares--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/tests/components/automation/test_zone.py/TestAutomationZone.test_if_not_fires_for_enter_on_zone_leave