def test_getNextJobStatus_wrong_type(self): """Only TranslationMergeJobs should result.""" #suppress job creation. with EventRecorder(): packaging = self.factory.makePackagingLink() TranslationSplitJob.forPackaging(packaging) self.assertIs(None, TranslationMergeJob.getNextJobStatus(packaging))
def test_getNextJobStatus_wrong_type(self): """Only TranslationMergeJobs should result.""" #suppress job creation. with EventRecorder(): packaging = self.factory.makePackagingLink() TranslationSplitJob.forPackaging(packaging) self.assertIs( None, TranslationMergeJob.getNextJobStatus(packaging))