Start using newly defined types

This commit is contained in:
2022-12-03 21:46:19 +01:00
parent 27c8f9ac70
commit 240824e808
4 changed files with 91 additions and 135 deletions

View 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