Testing¶
This package includes both Python and Extender Unit testing as well as an Extender Acceptance Test.
-
class
poplar_isocc.tests.test_poplar_isocc.
IsoCountryCodeTestCase
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
Unit tests for ISO country code validation.
-
class
poplar_isocc.tests.extest_poplar_isocc.
IsoCountryCodeTestCase
(log_level=15)[source]¶ Bases:
extools.extest.ExTestCase
Unit tests for ISO country code validation.
-
test_is_valid_iso_cc
()[source]¶ Passes iff the validation works for a valid, invalid and empty country code in SAMINC.
- Open a record with a valid country code, verify it validates.
- Open a record with an invalid country code, verify validation fails.
- Open a record with an empty country code, verify validation fails.
-