From c371723a3b81a0b269e1bd73f749e883de1a2dc3 Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Sun, 31 May 2015 13:38:58 +0200 Subject: Adding a few more tests, travis should work now --- .travis.yml | 2 +- fulltest.sh | 2 +- test_coecon.py | 0 testcards/hydra | 367 +++++++++++++++++++ testcards/nightmare | 1004 +++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 1373 insertions(+), 2 deletions(-) create mode 100755 test_coecon.py create mode 100644 testcards/hydra create mode 100644 testcards/nightmare diff --git a/.travis.yml b/.travis.yml index c2a5f06..46f140d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,4 @@ python: install: pip install lxml requests # command to run tests, e.g. python setup.py test #script: python -m unittest test_shivandragon test_callow test_cardclass test_sorin -script: fulltest.sh +script: ./fulltest.sh diff --git a/fulltest.sh b/fulltest.sh index 03891b4..655bca6 100755 --- a/fulltest.sh +++ b/fulltest.sh @@ -1,3 +1,3 @@ #!/usr/bin/env zsh -python -m unittest test_shivandragon test_callow test_cardclass test_sorin test_island test_shoal +python -m unittest test_shivandragon test_callow test_cardclass test_sorin test_island test_shoal test_coecon diff --git a/test_coecon.py b/test_coecon.py new file mode 100755 index 0000000..e69de29 diff --git a/testcards/hydra b/testcards/hydra new file mode 100644 index 0000000..14a6559 --- /dev/null +++ b/testcards/hydra @@ -0,0 +1,367 @@ + + + + + + Khalni Hydra (Rise of the Eldrazi) + + + + + + + + + + + +
+
+ + + + + +
+ + + + + + + +
+
+
+ + + + + + + + + +
+ + + ← Kazandu Tuskcaller + + + Rise of the Eldrazi + + + + Kozilek's Predator → + +
+
+ + + + + + + +
+ + Khalni Hydra + + + Khalni Hydra + English + + + + +

Creature — Hydra 8/8, + GGGGGGGG (8) +

+

Khalni Hydra costs {G} less to cast for each green creature you control.

Trample

+ + +

"In ages past, bargains were struck and promises were made. Now we must collect on our debt. Begin the hymns."
—Moruul, Khalni druid

+

Illus. Todd Lockwood

+

Gatherer Card Rulings?, Legality?

+
  • 6/15/2010: For the purpose of determining the cost reduction, the number of green creatures you control is checked as you cast Khalni Hydra, before your last chance to activate mana abilities to pay for it. For example, if you control Wild Cantor (a red and green creature with the ability "Sacrifice Wild Cantor: Add one mana of any color to your mana pool") as you cast Khalni Hydra, first the cost to cast Khalni Hydra is reduced by {G}, then you could sacrifice Wild Cantor for mana to help pay for it.
  • 6/15/2010: Khalni Hydra's cost reduction effect doesn't change its mana cost or converted mana cost.
  • 6/15/2010: If an effect (such as the one from Lodestone Golem) imposes an additional generic mana cost to casting Khalni Hydra, the Hydra's ability will reduce it too. It'll reduce the amount of green mana you need to spend first, though.
+
    + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + Printings:
+ + + + #192 (Todd Lockwood)
+ + + + + + + + + + + + + + + + + + + + +
Editions:
+ + + + English + + Rise of the Eldrazi (Mythic Rare)
+ + + + + + + + + + + + + + + + + + + + + +
Languages:
+ + + + + + German + Khalni-Hydra
+ + + + + French + Hydre de Khalni
+ + + + + Italian + Idra di Khalni
+ + + + + Spanish + Hidra de Khalni
+ + + + + Portuguese + Hidra de Khalni
+ + + + + Japanese + カルニのハイドラ
+ + + + + Simplified Chinese + 坎尼多头龙
+ + + + + Russian + Гидра Кални
+ + + + + +

+ all prints in all languages +
+
+ +
+ + + + + +
+ Rules Questions / Links
+ View All Prices for Khalni Hydra
+ View Decks with Khalni Hydra
+ Crystal Keep Rulings Summaries
+ Cranial Insertion (MTG Salvation)
+ +
+ MOTL Price Lists
+ Non-Foil · + Foil · + MTGO

+ Print Proxies:
[ +1 ] [ +2 ] [ +3 ] [ +4 ] · View · Clear

+ + HTML link to this card:

+ BBCode link to this card:
+
+ +
+ +
+ +
+ + The information presented on this site about + Magic: The Gathering, both literal and graphical, + is copyrighted by Wizards of the Coast.
+ This website is not produced, endorsed, supported, + or affiliated with Wizards of the Coast.
+ + + + diff --git a/testcards/nightmare b/testcards/nightmare new file mode 100644 index 0000000..d2d04de --- /dev/null +++ b/testcards/nightmare @@ -0,0 +1,1004 @@ + + + + + + Nightmare (Magic 2015) + + + + + + + + + + + +
+
+ + + + + +
+ + + + + + + +
+
+
+ + + + + + + + + +
+ + + ← Mahamoti Djinn + + + Magic 2015 + + + + Sengir Vampire → + +
+
+ + + + + + + +
+ + Nightmare + + + Nightmare + English + + + + +

Creature — Nightmare Horse */*, + 5B (6) +

+

Flying (This creature can't be blocked except by creatures with flying or reach.)

Nightmare's power and toughness are each equal to the number of Swamps you control.

+ + +

The thunder of its hooves beats dreams into despair.

+

Illus. Vance Kovacs

+

Gatherer Card Rulings?, Legality?

+
  • 4/1/2008: If you control 0 swamps, then the Nightmare has 0 toughness and will be put into its owner's graveyard as a state-based action right before the next player gains priority.
  • 10/1/2009: Nightmare's power and toughness changes as the number of Swamps you control changes.
  • 7/1/2013: The ability that defines Nightmare’s power and toughness works everywhere, not just on the battlefield.
  • 7/1/2013: Nightmare’s ability counts all lands you control with the subtype Swamp, not just ones named Swamp.
+
    + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + Printings:
+ + + + #276 (Vance Kovacs)
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Editions:
+ + + + English + + Magic 2015 (Rare)
+ + + + + + English + + Magic 2014 Core Set (Rare)
+ + + + + + English + + Magic 2010 (Rare)
+ + + + + + English + + Tenth Edition (Rare)
+ + + + + + English + + Ninth Edition (Rare)
+ + + + + + English + + Eighth Edition (Rare)
+ + + + + + English + + Seventh Edition (Rare)
+ + + + + + English + + Classic Sixth Edition (Rare)
+ + + + + + English + + Fifth Edition (Rare)
+ + + + + + English + + Fourth Edition (Rare)
+ + + + + + English + + Revised Edition (Rare)
+ + + + + + English + + International Collectors' Edition (Rare)
+ + + + + + English + + Collector's Edition (Rare)
+ + + + + + English + + Unlimited Edition (Rare)
+ + + + + + English + + Limited Edition Beta (Rare)
+ + + + + + English + + Limited Edition Alpha (Rare)
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Languages:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + German + Nachtmahr
+ + + + + + + + + + + + + + + + + + + + + + + + + + + French + Cheval de cauchemar
+ + + + + + + + + + + + + + + + + + + + + + + + + + + Italian + Incubo
+ + + + + + + + + + + + + + + + + + + + + + + + + + + Spanish + Pesadilla
+ + + + + + + + + + + + + + + + + + + + + + + + + Portuguese + Pesadelo
+ + + + + + + + + + + + + + + + + + + + + + + + + Japanese + 夢魔
+ + + + + + + + + + + + + Simplified Chinese + 梦魇
+ + + + + + + + + + + + + Russian + Кошмар
+ + + + + + + + + + + + + Traditional Chinese + 夢魘
+ + + + + + + + + + + Korean + 나이트메어
+ + + + + + + + + +

+ all prints in all languages +
+
+ +
+ + + + + +
+ Rules Questions / Links
+ View All Prices for Nightmare
+ View Decks with Nightmare
+ Crystal Keep Rulings Summaries
+ Cranial Insertion (MTG Salvation)
+ +
+ MOTL Price Lists
+ Non-Foil · + Foil · + MTGO

+ Print Proxies:
[ +1 ] [ +2 ] [ +3 ] [ +4 ] · View · Clear

+ + HTML link to this card:

+ BBCode link to this card:
+
+ +
+ +
+ +
+ + The information presented on this site about + Magic: The Gathering, both literal and graphical, + is copyrighted by Wizards of the Coast.
+ This website is not produced, endorsed, supported, + or affiliated with Wizards of the Coast.
+ + + + -- cgit v1.2.3