Bank Test

tests.bank_test.bank()

Fixture function that returns an instance of Bank class.

Returns:

An instance of Bank class.

Return type:

Bank

tests.bank_test.test_bank_init(bank)[source]

Test function that checks initialization of bank object.

This function checks that the bank is initialized with 20 resources and 0 development cards.

Parameters:

bank (Bank) – An instance of Bank class.

tests.bank_test.test_null_method(bank)[source]

Test function that checks null_method of bank object.

This function checks that null_method of bank object returns the expected value.

Parameters:

bank (Bank) – An instance of Bank class.