mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Fix flake8 ambiguous variable "l" issue
This commit is contained in:
parent
dc00e16fda
commit
50eb857133
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user