Beispiel #1
0
    def testUpdateProcessStatus(self):
        """Tests the _UpdateProcessStatus function."""
        process_status = processing_status.ProcessStatus()

        status = processing_status.ProcessingStatus()
        status._UpdateProcessStatus(process_status, 'test', 'Idle', 12345,
                                    2000000, 'test process', 0, 0, 0, 0, 0, 0,
                                    0, 0, 0, 0)
Beispiel #2
0
    def testUpdateNumberOfEventTags(self):
        """Tests the UpdateNumberOfEventTags function."""
        process_status = processing_status.ProcessStatus()

        process_status.UpdateNumberOfEventTags(5, 5)

        with self.assertRaises(ValueError):
            process_status.UpdateNumberOfEventTags(1, 10)

        with self.assertRaises(ValueError):
            process_status.UpdateNumberOfEventTags(10, 1)