Exemple #1
0
 def test_parse_from_string_when_has_invalid_string(self):
     with self.assertRaises(ValueError):
         Card.parse_from_string('4')
Exemple #2
0
 def test_parse_from_string(self):
     card = Card.parse_from_string('4C')
     self.assertEquals(card.suit, 'C')
     self.assertEquals(card.value, '4')