c.l.s.t.t.EntitlementImporterTestCase(unittest.TestCase) : class documentation

Part of canonical.launchpad.scripts.tests.test_entitlementimport View In Hierarchy

Test EntitlementImport methods.
Method setUp Setup the test environment and retrieve useful instances.
Method tearDown Teardown the test environment.
Method test_manipulateEntitlement Test creating and updating entitlements.
Method test_wrongVersion Wrong version.
Method test_successfulInsert Successfully insert an entitlement.
Method test_insertUsingNonExistentPerson Attempt to insert using a non-existent person.
Method test_omitQuota Omit the quota and get an error.
Method test_omitPerson Omit the person and get an error.
Method test_omitExtId Omit the ext_id and get an error.
Method test_omitEntitlementType Omit the entitlement_type and get an error.
Method test_omitState Omit the state and get an error.
Method test_updateWithInvalidId Update using an invalid entitlement id.
Method test_updateChangingPerson Changing the person, which isn't allowed.
Method _getImporterAndReader Undocumented
Method _testCreate Undocumented
Method _testUpdate Undocumented
def setUp(self):
Setup the test environment and retrieve useful instances.
def tearDown(self):
Teardown the test environment.
def _getImporterAndReader(self, data):
Undocumented
def _testCreate(self, data):
Undocumented
def _testUpdate(self, data):
Undocumented
def test_manipulateEntitlement(self):
Test creating and updating entitlements.
def test_wrongVersion(self):
Wrong version.
def test_successfulInsert(self):
Successfully insert an entitlement.
def test_insertUsingNonExistentPerson(self):
Attempt to insert using a non-existent person.
def test_omitQuota(self):
Omit the quota and get an error.
def test_omitPerson(self):
Omit the person and get an error.
def test_omitExtId(self):
Omit the ext_id and get an error.
def test_omitEntitlementType(self):
Omit the entitlement_type and get an error.
def test_omitState(self):
Omit the state and get an error.
def test_updateWithInvalidId(self):
Update using an invalid entitlement id.
def test_updateChangingPerson(self):
Changing the person, which isn't allowed.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.