Fix bug in UII field

Was displaying an empty list of UIIs as [''] in the textarea
This commit is contained in:
richard-dds
2018-08-16 13:24:11 -04:00
parent af96237231
commit 070fe823d3
3 changed files with 42 additions and 9 deletions

View File

@@ -3,12 +3,12 @@ import pytest
from atst.forms.financial import suggest_pe_id
@pytest.mark.parametrize("input,expected", [
@pytest.mark.parametrize("input_,expected", [
('0603502N', None),
('0603502NZ', None),
('603502N', '0603502N'),
('063502N', '0603502N'),
('63502N', '0603502N'),
])
def test_suggest_pe_id(input, expected):
assert suggest_pe_id(input) == expected
def test_suggest_pe_id(input_, expected):
assert suggest_pe_id(input_) == expected