Fix flake8 ambiguous variable "l" issue

This commit is contained in:
kansi 2017-10-23 18:06:11 +05:30
parent dc00e16fda
commit 50eb857133

View File

@ -142,9 +142,9 @@ def test_is_genesis_block_returns_true_if_genesis(b):
def test_lazy_execution():
from bigchaindb.utils import Lazy
l = Lazy()
l.split(',')[1].split(' ').pop(1).strip()
result = l.run('Like humans, cats tend to favor one paw over another')
lz = Lazy()
lz.split(',')[1].split(' ').pop(1).strip()
result = lz.run('Like humans, cats tend to favor one paw over another')
assert result == 'cats'
class Cat:
@ -153,7 +153,7 @@ def test_lazy_execution():
cat = Cat('Shmui')
l = Lazy()
l.name.upper()
result = l.run(cat)
lz = Lazy()
lz.name.upper()
result = lz.run(cat)
assert result == 'SHMUI'