Conditions | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """ |
||
11 | @pytest.mark.parametrize( |
||
12 | 'name, address, expected', |
||
13 | [ |
||
14 | (None, '[email protected]', '[email protected]'), |
||
15 | ('Simple', '[email protected]', 'Simple <[email protected]>'), |
||
16 | ('Mr. Pink', '[email protected]', '"Mr. Pink" <[email protected]>'), # quotes name |
||
17 | ], |
||
18 | ) |
||
19 | def test_name_and_address_format(name, address, expected): |
||
20 | name_and_address = NameAndAddress(name, address) |
||
21 | assert name_and_address.format() == expected |
||
22 |