Errors in the mana cost exception tests, causing them to not actually test anything

This commit is contained in:
Correl Roush 2010-08-31 10:28:50 -04:00
parent c3a80c3ef2
commit cd179365e7

View file

@ -23,9 +23,9 @@ class TestManaCostMath(unittest.TestCase):
self.assertEquals(0, result.mana['R']) self.assertEquals(0, result.mana['R'])
self.assertEquals(1, result.mana['W']) self.assertEquals(1, result.mana['W'])
def test_subtract_manacost_from_mana_insufficient_addtl(self): def test_subtract_manacost_from_mana_insufficient_addtl(self):
self.assertRaises(Exception, lambda: Mana('RRW'), ManaCost('3R')) self.assertRaises(Exception, lambda: Mana('RRW') - ManaCost('3R'))
def test_subtract_manacost_from_mana_insufficient_color(self): def test_subtract_manacost_from_mana_insufficient_color(self):
self.assertRaises(Exception, lambda: Mana('RRW'), ManaCost('2U')) self.assertRaises(Exception, lambda: Mana('RRW') - ManaCost('2U'))
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()