Part of canonical.launchpad.scripts.tests.test_hwdb_submission_processing View In Hierarchy
| Method | setUp | Setup the test environment. |
| Method | getLogData | Undocumented |
| Method | setHALDevices | Undocumented |
| Method | testGetDriverNoDriverInfo | Test of HALDevice.getDriver(). |
| Method | testGetDriverWithDriverInfo | Test of HALDevice.getDriver(). |
| Method | testEnsureVendorIDVendorNameExistsRegularCase | Test of ensureVendorIDVendorNameExists(self), regular case. |
| Method | runTestEnsureVendorIDVendorNameExistsVendorNameUnknown | Test of ensureVendorIDVendorNameExists(self), special case. |
| Method | testEnsureVendorIDVendorNameExistsVendorPCI | Test of ensureVendorIDVendorNameExists(self), PCI bus. |
| Method | testEnsureVendorIDVendorNameExistsVendorPCCARD | Test of ensureVendorIDVendorNameExists(self), PCCARD bus. |
| Method | testEnsureVendorIDVendorNameExistVendorUSB | Test of ensureVendorIDVendorNameExists(self), USB bus. |
| Method | testEnsureVendorIDVendorNameExistVendorSCSI | Test of ensureVendorIDVendorNameExists(self), SCSI bus. |
| Method | testCreateDBDataForSimpleDevice | Test of HALDevice.createDBData. |
| Method | testCreateDBDataForDeviceWithOneDriver | Test of HALDevice.createDBData. |
| Method | testCreateDBDataForDeviceWithTwoDrivers | Test of HALDevice.createDBData. |
| Method | createSubmissionData | Create a submission. |
| Method | getSampleData | Return the submission data of a short valid submission. |
| Method | assertSampleDeviceCreated | Assert that data for the device exists in HWDB tables. |
| Method | assertAllSampleDevicesCreated | Assert that the devices from the sample submission are processed. |
| Method | testProcessSubmissionValidData | Test of SubmissionParser.processSubmission(). |
| Method | testProcessSubmissionValidBzip2CompressedData | Test of SubmissionParser.processSubmission(). |
| Method | testProcessSubmissionInvalidData | Test of SubmissionParser.processSubmission(). |
| Method | testProcessSubmissionInconsistentData | Test of SubmissionParser.processSubmission(). |
| Method | test_processSubmission_udev_data | Test of SubmissionParser.processSubmission(). |
| Method | test_processSubmission_buildDeviceList_failing | Test of SubmissionParser.processSubmission(). |
| Method | testProcessSubmissionRealData | Test of SubmissionParser.processSubmission(). |
| Method | test_root_device | Test o SubmissionParser.root_device. |
| Method | testPendingSubmissionProcessing | Test of process_pending_submissions(). |
| Method | testOopsLogging | Test if OOPSes are properly logged. |
| Method | testProcessingLoopExceptionHandling | Test of the exception handling of ProcessingLoop.__call__() |
Inherited from TestCaseHWDB:
| Method | assertWarningMessage | Search for message in the log entries for submission_key. |
| Method | assertErrorMessage | Search for log_message in the log entries for submission_key. |
Inherited from TestCase (via TestCaseHWDB):
| Method | becomeDbUser | Commit, then log into the database as dbuser. |
| Method | installFixture | Install 'fixture', an object that has a setUp and tearDown. |
| Method | __str__ | The string representation of a test is its id. |
| Method | useContext | Use the supplied context in this test. |
| Method | makeTemporaryDirectory | Create a temporary directory, and return its path. |
| Method | assertProvides | Assert 'obj' correctly provides 'interface'. |
| Method | assertClassImplements | Assert 'cls' may correctly implement 'interface'. |
| Method | assertNotifies | Assert that a callable performs a given notification. |
| Method | assertNoNotification | Assert that no notifications are generated by the callable. |
| Method | assertNoNewOops | Assert that no oops has been recorded since old_oops. |
| Method | assertSqlAttributeEqualsDate | Fail unless the value of the attribute is equal to the date. |
| Method | assertIsInstance | Assert that an instance is an instance of assert_class. |
| Method | assertIsNot | Assert that expected is not the same object as observed. |
| Method | assertContentEqual | Assert that 'iter1' has the same content as 'iter2'. |
| Method | assertRaisesWithContent | Check if the given exception is raised with given content. |
| Method | assertBetween | Assert that 'variable' is strictly between two boundaries. |
| Method | pushConfig | Push some key-value pairs into a section of the config. |
| Method | attachOopses | Undocumented |
| Method | assertStatementCount | Assert that the expected number of SQL statements occurred. |
| Method | useTempDir | Use a temporary directory for this test. |
| Method | assertEmailHeadersEqual | Assert that two e-mail headers are equal. |
| Method | _recordOops | Add the oops to the testcase's list. |
| Method | _unfoldEmailHeader | Unfold a multiline e-mail header. |
A HWVendorID record is not created by HALDevice.ensureVendorIDVendorNameExists for certain buses.
Test for a HAL device without driver data.
Test of a HAL device with one driver.
Test for a HAL device with two drivers.
The test data contains two devices: A system and a PCI device. The system has no associated drivers; the PCI device is associated with the ahci driver.
Regular case: Process valid compressed submission data.
Regular case: Process valid compressed submission data.
If a submission contains formally invalid data, it is rejected.
If a submission contains inconsistent data, it is rejected.
Variant with udev data.
If the method buildDeviceList() fails for a submission, it is rejected.
Test with data from a real submission.