def validate(self, registering=False):
        if not is_btc_address(self.payout_addr):
            msg = "Invalid BTC Address: {0}".format(self.payout_addr)
            logger.warning(msg)
            raise ValueError(msg)
        exists = self.exists()
        if exists and registering:
            msg = "Address already registered: {0}".format(self.payout_addr)
            logger.warning(msg)
            raise LookupError(msg)
Test the share view
dataset/ETHPy150Open Storj/dataserv/dataserv/Farmer.py/Farmer.validate--crossover with--dataset/ETHPy150Open passy/flask-gae-mini-profiler/tests/extension.py/ExtensionTestCase.test_share_view