def test_valid_white_connected_both_pass(self):
     valid_boards = [
         Mochikoro('''
                   X.
                   .X
                   '''),
     ]   
     for vb in valid_boards:
         self.assertTrue(valid.white_connected_both(vb), 'board tested invalid:\n%r' % vb)
 def test_valid_white_connected_both_fail(self):
     invalid_boards = [
         Mochikoro('''
                   XX.
                   .X.
                   '''),
         Mochikoro('''
                   .X..3
                   2XXXX
                   XX.2X
                   ..XXX
                   4.X1X
                   '''),
     ]
     for ib in invalid_boards:
         self.assertFalse(valid.white_connected_both(ib), 'board tested valid:\n%r' % ib)