'Run the check and return True if it passed, False otherwise.
Mocks the actual Basket call.
`user_exists` is whether Basket should respond as if the user existed.
`http_error` is whether the basket call should respond as if it couldn\'t get to Basket
or Exact Target.'

def run_check(self, user_exists=True, http_error=False):

    lookup_path = 'mozillians.phonebook.management.commands.check_basket.lookup_user'
    with patch(lookup_path, autospec=True) as mock_lookup:
        if http_error:
            mock_lookup.side_effect = BasketException(code=BASKET_NETWORK_FAILURE)
        elif (not user_exists):
            mock_lookup.side_effect = BasketException(code=BASKET_UNKNOWN_EMAIL)
        else:
            mock_lookup.return_value = {'status': 'ok'}
        cmd = Command()
        cmd.stdout = stdout
        try:
            cmd.handle()
        except CommandError:
            return False
        else:
            return True
