def test_check_guess(self): with app.test_client() as client: with client.session_transaction() as session: session['answered'] = ['word'] session['game_board'] = Boggle().make_board() theboard = session['game_board'] resp = client.get("/") self.assertEqual(resp.status_code, 200) # self.assertEqual(Boggle.check_guess(Boggle(),'of'), 'not-on-board') cant know in any instance what the board actually is self.assertEqual(Boggle.check_guess(Boggle(), 'asfgh', theboard), 'not-word')