Remove superfluous test

This commit is contained in:
Miroslav Kovar 2019-09-19 17:36:01 +02:00 committed by Lex Berezhny
parent 9b0910767d
commit 34d19c4a72
2 changed files with 1 additions and 6 deletions

View file

@ -148,7 +148,7 @@ class MaxKeyFee(Setting[dict]):
@staticmethod @staticmethod
def _parse_list(l): def _parse_list(l):
if len(l) == 1 and l[0] == 'null': if l == ['null']:
return None return None
assert len(l) == 2, ( assert len(l) == 2, (
'Max key fee is made up of either two values: ' 'Max key fee is made up of either two values: '

View file

@ -207,11 +207,6 @@ class ConfigurationTests(unittest.TestCase):
c.max_key_fee = None c.max_key_fee = None
with open(config, 'r') as fd: with open(config, 'r') as fd:
self.assertEqual(fd.read(), 'max_key_fee: null\n') self.assertEqual(fd.read(), 'max_key_fee: null\n')
c = Config.create_from_arguments(
types.SimpleNamespace(config=config)
)
with open(config, 'r') as fd:
self.assertEqual(c.max_key_fee, None)
def test_max_key_fee_from_args(self): def test_max_key_fee_from_args(self):
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()