Conditions | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | """ |
||
11 | @pytest.mark.parametrize( |
||
12 | 'channel, expected_name, expected_password', |
||
13 | [ |
||
14 | (IrcChannel('#example'), '#example', None ), |
||
15 | (IrcChannel('#example', password=None), '#example', None ), |
||
16 | (IrcChannel('#headquarters', password='secret'), '#headquarters', 'secret'), |
||
17 | ], |
||
18 | ) |
||
19 | def test_irc_channel_creation(channel, expected_name, expected_password): |
||
20 | assert channel.name == expected_name |
||
21 | assert channel.password == expected_password |
||
22 |