Start using newly defined types
This commit is contained in:
18
src/solo_turnier/tests/test_types.py
Normal file
18
src/solo_turnier/tests/test_types.py
Normal file
@@ -0,0 +1,18 @@
|
||||
import pytest
|
||||
import solo_turnier.types as types
|
||||
|
||||
def test_HtmlPreviewParticipant_eq():
|
||||
name = 'Max Mustermann'
|
||||
id = 123
|
||||
group = 'Kin'
|
||||
participant = types.HtmlPreviewParticipant(name, id, group)
|
||||
|
||||
l = []
|
||||
assert participant not in l
|
||||
l.append(participant)
|
||||
assert participant in l
|
||||
|
||||
assert types.HtmlPreviewParticipant(name, id, group) in l
|
||||
assert types.HtmlPreviewParticipant('Maxime Musterfrau', id, group) not in l
|
||||
assert types.HtmlPreviewParticipant(name, 234, group) not in l
|
||||
assert types.HtmlPreviewParticipant(name, id, 'Jun') not in l
|
||||
Reference in New Issue
Block a user