def METHOD_NAME(self, load_classifier):
    load_classifier.return_value = None
    DocumentType.objects.create(matching_algorithm=Tag.MATCH_AUTO, name="test")
    tasks.train_classifier()
    load_classifier.assert_called_once()
    self.assertIsNotFile(settings.MODEL_FILE)