def test_thrift_game_equal_db_game():
	user = helpers.get_user_object()
	game = helpers.get_game_object(user)

	t_user = helpers.get_thrift_user()
	t_game = helpers.get_thrift_game(t_user)

	assert game == t_game
	t_game.game_id = 2
	assert game != t_game
def test_thrift_guess_equal_db_guess():
	user = helpers.get_user_object()
	game = helpers.get_game_object(user)
	guess = helpers.get_guess_object(game)

	t_user = helpers.get_thrift_user()
	t_game = helpers.get_thrift_game(t_user)
	t_guess = helpers.get_thrift_guess(t_game)

	assert guess == t_guess
	t_guess.number = 1000000
	assert guess != t_guess