tests package

Submodules

tests.test_verifone module

Tests for verifone package.

class tests.test_verifone.TestVerifone(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test for Verifone package.

classmethod setUpClass()[source]

Set up our Verifone client for tests. It requires the following environment variables: AGREEMENTCODE, RSAPRIVATEKEY and EMAIL

test_001_create_object_with_defaults()[source]

Test creating a new object with default values

test_002_get_endpoint()[source]

Test to get endpoint url and change to test mode

test_003_create_object_wrong_currency()[source]

Test creating a new object with wrong currency, so default currency should be used

test_004_create_object_currency_lower()[source]

Test creating a new object with currency in lower case

test_005_update_currency()[source]

Test that currency is updated

test_006_is_available()[source]

Test connection to Verifone server

test_007_get_payment_methods()[source]

Test to get all available payment methods

test_008_list_saved_payment_methods()[source]

Test to get saved payment methods

test_009_remove_saved_payment_method()[source]

Test to remove saved payment method when saved payment method is wrong

test_010_generate_payment_data()[source]

Test to generate payment data

test_011_generate_payment_data()[source]

Test to generate payment data when all data is not defined

Test to generate payment link

Test to get payment link status.

Test to reactivate payment link.

test_015_process_payment()[source]

Test to process payment

test_016_list_transaction_numbers()[source]

Test to get transaction numbers for one order.

test_017_get_payment_status()[source]

Test to get payment status

test_018_refund_payment()[source]

Test to refund payment

test_019_cancel_payment()[source]

Test to cancel payment.

test_020_process_supplementary()[source]

Test to process supplementary.

test_021_get_endpoint()[source]

Test for getting endpoints

test_022_save_test_mode()[source]

Test for save test mode

test_023_get_endpoint()[source]

Test for getting post urls

test_024_build_product_data()[source]

Test building product data

test_025_verify_response()[source]

Test to verify response with extra data.

test_026_verify_incorrect_signature()[source]

Test to verify incorrect signature

test_027_check_currency()[source]

Test that currency is valid

test_028_process_payment()[source]

Test to process payment when ‘s-t-1-30_bi-name-0’ data is longer than Verifone accepts

test_029_generate_payment_data()[source]

Test to generate payment data with too long product names

test_030_generate_payment_data()[source]

Test to generate payment data when customer id is defined

test_031_generate_payment_data()[source]

Test to generate payment data when saved payment method id is defined

Module contents

Unit test package for verifone.