Ejemplo n.º 1
0
class TestFaceDownCard(unittest.TestCase):
    def setUp(self):
        self.card = FaceDownCard()
    
    def test_all_connections_are_straight_through(self):
        """ All connections should be straight through to the other side of the card """
        exp_connections = [ [0,3], [1,5], [2,4] ]
        self.assertEqual(self.card.getConnectedEndpoints(), exp_connections)
Ejemplo n.º 2
0
 def setUp(self):
     self.card = FaceDownCard()