import pytest

from spydes import *

def test_Deck():
    d = Deck()
    d.new_pack()

    assert len(d) == 52

def test_Deck_rotate_once():
    d = Deck([Card(Suit.heart, Value.ace), Card(Suit.club, Value.ace), Card(Suit.spade, Value.ace)])
    d.rotate()
    assert d == [Card(Suit.club, Value.ace), Card(Suit.spade, Value.ace), Card(Suit.heart, Value.ace)]

@@ -353,8 +353,436 @@
 e.ace)%5D%0A
+%0Adef test_Card_same_value():%0A    first_card = Card(Suit.club, Value.three)%0A    second_card = Card(Suit.joker, Value.three)%0A    assert first_card.same_value(second_card)%0A%0Adef test_Deck_unicards_varyjokers():%0A    d = Deck()%0A    d.new_pack(jokers=5)%0A    correct = '%F0%9F%83%9F %F0%9F%82%BF %F0%9F%83%8F %F0%9F%83%9F %F0%9F%82%BF %F0%9F%82%A1 %F0%9F%82%A2 %F0%9F%82%A3 %F0%9F%82%A4 %F0%9F%82%A5 %F0%9F%82%A6 %F0%9F%82%A7 %F0%9F%82%A8 %F0%9F%82%A9 %F0%9F%82%AA %F0%9F%82%AB %F0%9F%82%AD %F0%9F%82%AE %F0%9F%82%B1 %F0%9F%82%B2 %F0%9F%82%B3 %F0%9F%82%B4 %F0%9F%82%B5 %F0%9F%82%B6 %F0%9F%82%B7 %F0%9F%82%B8 %F0%9F%82%B9 %F0%9F%82%BA %F0%9F%82%BB %F0%9F%82%BD %F0%9F%82%BE %F0%9F%83%81 %F0%9F%83%82 %F0%9F%83%83 %F0%9F%83%84 %F0%9F%83%85 %F0%9F%83%86 %F0%9F%83%87 %F0%9F%83%88 %F0%9F%83%89 %F0%9F%83%8A %F0%9F%83%8B %F0%9F%83%8D %F0%9F%83%8E %F0%9F%83%91 %F0%9F%83%92 %F0%9F%83%93 %F0%9F%83%94 %F0%9F%83%95 %F0%9F%83%96 %F0%9F%83%97 %F0%9F%83%98 %F0%9F%83%99 %F0%9F%83%9A %F0%9F%83%9B %F0%9F%83%9D %F0%9F%83%9E '%0A    assert d.unicard(vary_jokers=True) == correct%0A

test deck unicards