Trade Test

tests.trade_test.test_accept_trade()[source]

Test that the Trade object is marked as accepted after calling accept_trade.

Returns:

Nothing.

tests.trade_test.test_cancel_trade()[source]

Test that the Trade object is marked as not accepted after calling cancel_trade.

Returns:

Nothing.

tests.trade_test.test_execute_trade()[source]

Test that execute_trade() properly transfers resources between players.

Returns:

Nothing.

tests.trade_test.test_get_offered_resource()[source]

Test that get_offered_resource() returns the correct offered resources.

Returns:

Nothing.

tests.trade_test.test_get_offering_player()[source]

Test that get_offering_player() returns the correct offering player.

Returns:

Nothing.

tests.trade_test.test_trade_init()[source]

Test the Trade object is initialized with the expected values.

Returns:

Nothing.