Пример #1
0
 def should_preserve_multi_hybrid_activations(self):
     text = (u'{(r/w)}: ~this~ becomes a 2/2 Kithkin Spirit. ;'
             u'{(r/w){(r/w){(r/w)}: If ~this~ is a Spirit, it becomes a 4/4 '
             u'Kithkin Spirit Warrior. ; {(r/w){(r/w){(r/w){(r/w){(r/w)'
             u'{(r/w)}: If ~this~ is a Warrior, it becomes an 8/8 Kithkin'
             u' Spirit Warrior Avatar with flying and first strike.')
     self.assertEqual(remove_reminders(text), text)
Пример #2
0
 def should_remove_hybrid_mana_reminders(self):
     text = u'({(g/w)} can be paid with either {G} or {W}.) ; Other ' \
         u'permanents you control can\'t be the targets of spells or' \
         u' abilities your opponents control.'
     replaced_text = u' ; Other permanents you control can\'t be the' \
         u' targets of spells or abilities your opponents control.'
     self.assertEqual(remove_reminders(text), replaced_text)
Пример #3
0
 def should_remove_hybrid_mana_reminders(self):
     text = u'({(g/w)} can be paid with either {G} or {W}.) ; Other ' \
         u'permanents you control can\'t be the targets of spells or' \
         u' abilities your opponents control.'
     replaced_text = u' ; Other permanents you control can\'t be the' \
         u' targets of spells or abilities your opponents control.'
     self.assertEqual(remove_reminders(text), replaced_text)
Пример #4
0
 def should_preserve_multi_hybrid_activations(self):
     text = (
         u'{(r/w)}: ~this~ becomes a 2/2 Kithkin Spirit. ;'
         u'{(r/w){(r/w){(r/w)}: If ~this~ is a Spirit, it becomes a 4/4 '
         u'Kithkin Spirit Warrior. ; {(r/w){(r/w){(r/w){(r/w){(r/w)'
         u'{(r/w)}: If ~this~ is a Warrior, it becomes an 8/8 Kithkin'
         u' Spirit Warrior Avatar with flying and first strike.')
     self.assertEqual(remove_reminders(text), text)
Пример #5
0
 def should_handle_multiple_reminders_with_mana_costs(self):
     text = (u'Kicker {2}{B} (You may pay an additional {2}{B} as you'
             u' cast this spell.) ; Target creature gets +3/+0 until end of'
             u' turn. If ~this~ was kicked, that creature gains lifelink '
             u'until end of turn. (Damage dealt by the creature also causes '
             u'its controller to gain that much life.)')
     replaced_text = (u'Kicker {2}{B} ; Target creature gets +3/+0 until '
                      u'end of turn. If ~this~ was kicked, that creature '
                      u'gains lifelink until end of turn.')
     self.assertEqual(remove_reminders(text), replaced_text)
Пример #6
0
 def should_handle_quotation_marks(self):
     text = (u'Change the text of target permanent by replacing all '
             u'instances of one color word or basic land type with another '
             u'until end of turn. (For example, you may change "nonred '
             u'creature" to "nongreen creature" or "plainswalk" to '
             u'"swampwalk.")')
     repl = (u'Change the text of target permanent by replacing all '
             u'instances of one color word or basic land type with another '
             u'until end of turn.')
     self.assertEqual(remove_reminders(text), repl)
Пример #7
0
 def should_handle_quotation_marks(self):
     text = (u'Change the text of target permanent by replacing all '
             u'instances of one color word or basic land type with another '
             u'until end of turn. (For example, you may change "nonred '
             u'creature" to "nongreen creature" or "plainswalk" to '
             u'"swampwalk.")')
     repl = (u'Change the text of target permanent by replacing all '
             u'instances of one color word or basic land type with another '
             u'until end of turn.')
     self.assertEqual(remove_reminders(text), repl)
Пример #8
0
 def should_handle_multiple_reminders_with_mana_costs(self):
     text = (
         u'Kicker {2}{B} (You may pay an additional {2}{B} as you'
         u' cast this spell.) ; Target creature gets +3/+0 until end of'
         u' turn. If ~this~ was kicked, that creature gains lifelink '
         u'until end of turn. (Damage dealt by the creature also causes '
         u'its controller to gain that much life.)')
     replaced_text = (u'Kicker {2}{B} ; Target creature gets +3/+0 until '
                      u'end of turn. If ~this~ was kicked, that creature '
                      u'gains lifelink until end of turn.')
     self.assertEqual(remove_reminders(text), replaced_text)
Пример #9
0
 def should_preserve_hybrid_activations_with_reminders(self):
     text = u'Cycling {(w/u)} ({(w/u)}, Discard this card: Draw a card.)'
     replaced = u'Cycling {(w/u)}'
     self.assertEqual(remove_reminders(text), replaced)
Пример #10
0
 def should_remove_level_up_reminder(self):
     text = (u'Level up {W} ({W}: Put a level counter on this. Level up'
             u' only as a sorcery.) ;')
     replaced_text = u'Level up {W} ;'
     self.assertEqual(remove_reminders(text), replaced_text)
Пример #11
0
 def should_preserve_hybrid_activation_costs(self):
     text = u'{(g/u)}: ~this~ gains shroud until end of turn. ;'
     self.assertEqual(remove_reminders(text), text)
Пример #12
0
 def should_handle_nested_reminders(self):
     text = (
         u'Super haste (This may attack the turn before you play it. (You may put this card into play from your hand, tapped and attacking, during your declare attackers step. If you do, you lose the game at the end of your next turn unless you pay this card\'s mana cost during that turn.))'
     )
     repl = u'Super haste'
     self.assertEqual(remove_reminders(text), repl)
Пример #13
0
 def should_preserve_hybrid_activations_with_reminders(self):
     text = u'Cycling {(w/u)} ({(w/u)}, Discard this card: Draw a card.)'
     replaced = u'Cycling {(w/u)}'
     self.assertEqual(remove_reminders(text), replaced)
Пример #14
0
 def should_remove_level_up_reminder(self):
     text = (u'Level up {W} ({W}: Put a level counter on this. Level up'
             u' only as a sorcery.) ;')
     replaced_text = u'Level up {W} ;'
     self.assertEqual(remove_reminders(text), replaced_text)
Пример #15
0
 def should_preserve_hybrid_activation_costs(self):
     text = u'{(g/u)}: ~this~ gains shroud until end of turn. ;'
     self.assertEqual(remove_reminders(text), text)
Пример #16
0
 def should_delete_reminder_text(self):
     text = u'Flying (Can only be blocked by creatures with flying.)'
     self.assertEqual(remove_reminders(text), u'Flying')
Пример #17
0
 def should_handle_nested_reminders(self):
     text = (u'Super haste (This may attack the turn before you play it. (You may put this card into play from your hand, tapped and attacking, during your declare attackers step. If you do, you lose the game at the end of your next turn unless you pay this card\'s mana cost during that turn.))')
     repl = u'Super haste'
     self.assertEqual(remove_reminders(text), repl)
Пример #18
0
 def should_delete_reminder_text(self):
     text = u'Flying (Can only be blocked by creatures with flying.)'
     self.assertEqual(remove_reminders(text), u'Flying')