Example #1
0
 def test_equals_2(self):
     self.assertEqual(parse_mana_cost('0'), {})
Example #2
0
 def test_none_2(self):
     self.assertIsNone(parse_mana_cost('2\n'))
Example #3
0
 def test_none_3(self):
     self.assertIsNone(parse_mana_cost('\n2'))
Example #4
0
 def test_equals_10(self):
     self.assertEqual(parse_mana_cost('2R'), {'*': 2, 'r': 1})
Example #5
0
 def test_equals_11(self):
     self.assertEqual(parse_mana_cost('b'), {'b': 1})
Example #6
0
 def test_equals_8(self):
     self.assertEqual(parse_mana_cost('1WWU'), {'*': 1, 'w': 2, 'u': 1})
Example #7
0
 def test_equals_9(self):
     self.assertEqual(parse_mana_cost('0r'), {'r': 1})
Example #8
0
 def test_equals_7(self):
     self.assertEqual(parse_mana_cost('1wbg'),
                      {'*': 1, 'w': 1, 'b': 1, 'g': 1})
Example #9
0
 def test_equals_6(self):
     self.assertEqual(parse_mana_cost('2rr'), {'*': 2, 'r': 2})
Example #10
0
 def test_equals_5(self):
     self.assertEqual(parse_mana_cost('15'), {'*': 15})
Example #11
0
 def test_equals_4(self):
     self.assertEqual(parse_mana_cost('4'), {'*': 4})
Example #12
0
 def test_equals_3(self):
     self.assertEqual(parse_mana_cost('1'), {'*': 1})