def test_is_valid(self):
        validator = Validator()
        validator.validate = self.mock().MagicMock(return_value=True)

        self.assertTrue(validator.is_valid('foo'))

        validator.validate = self.mock().MagicMock(return_value=False)

        self.assertTrue(validator.is_valid('foo'))
parse servers list into dict format
dataset/ETHPy150Open sdispater/cleo/tests/validators/test_validators.py/ValidatorTestCase.test_is_valid--crossover with--dataset/ETHPy150Open bitxbay/BitXBay/electru/build/lib/electrum/network.py/parse_servers