def handle_data(self, data):
        if self.target_shares == 0:
            assert self.portfolio.positions not in 0
        else:
            assert self.portfolio.positions[0]['amount'] == \
                self.target_shares, "Orders not filled immediately."
            assert self.portfolio.positions[0]['last_sale_price'] == \
                data.current(sid(0), "price"), \
                "Orders not filled at current price."
        self.target_shares = 10
        self.order_target(self.sid(0), self.target_shares)
dataset/ETHPy150Open quantopian/zipline/zipline/test_algorithms.py/TestTargetAlgorithm.handle_data/swapped operands of `not in`