11# -*- coding: utf-8 -*-
2- import tempfile
2+ # import tempfile
33import datetime
44import os
55import shutil
@@ -390,7 +390,7 @@ def nominate_view(self, *args, **kwargs):
390390 self .assertEqual (len (q ("#nominate-form" )), 0 )
391391
392392 # save the cert file in tmp
393- nomcom .public_key .storage .location = tempfile .gettempdir ()
393+ # nomcom.public_key.storage.location = tempfile.gettempdir()
394394 nomcom .public_key .save ('cert' , File (open (self .cert_file .name , 'r' )))
395395
396396 response = self .client .get (nominate_url )
@@ -456,7 +456,7 @@ def nominate_newperson_view(self, *args, **kwargs):
456456 self .assertEqual (len (q ("#nominate-form" )), 0 )
457457
458458 # save the cert file in tmp
459- nomcom .public_key .storage .location = tempfile .gettempdir ()
459+ # nomcom.public_key.storage.location = tempfile.gettempdir()
460460 nomcom .public_key .save ('cert' , File (open (self .cert_file .name , 'r' )))
461461
462462 response = self .client .get (nominate_url )
@@ -532,7 +532,7 @@ def add_questionnaire(self, *args, **kwargs):
532532 self .assertNotContains (response , "questionnnaireform" )
533533
534534 # save the cert file in tmp
535- nomcom .public_key .storage .location = tempfile .gettempdir ()
535+ # nomcom.public_key.storage.location = tempfile.gettempdir()
536536 nomcom .public_key .save ('cert' , File (open (self .cert_file .name , 'r' )))
537537
538538 response = self .client .get (self .add_questionnaire_url )
@@ -607,7 +607,7 @@ def feedback_view(self, *args, **kwargs):
607607 self .assertNotContains (response , "feedbackform" )
608608
609609 # save the cert file in tmp
610- nomcom .public_key .storage .location = tempfile .gettempdir ()
610+ # nomcom.public_key.storage.location = tempfile.gettempdir()
611611 nomcom .public_key .save ('cert' , File (open (self .cert_file .name , 'r' )))
612612
613613 response = self .client .get (feedback_url )
@@ -723,7 +723,7 @@ def test_encrypted_comments(self):
723723 nomcom = position .nomcom
724724
725725 # save the cert file in tmp
726- nomcom .public_key .storage .location = tempfile .gettempdir ()
726+ # nomcom.public_key.storage.location = tempfile.gettempdir()
727727 nomcom .public_key .save ('cert' , File (open (self .cert_file .name , 'r' )))
728728
729729 comments = u'Plain text. Comments with accents äöåÄÖÅ éáíóú âêîôû ü àèìòù.'
@@ -745,7 +745,7 @@ def setUp(self):
745745 nomcom_test_data ()
746746 self .nomcom = get_nomcom_by_year (NOMCOM_YEAR )
747747 self .cert_file , self .privatekey_file = get_cert_files ()
748- self .nomcom .public_key .storage .location = tempfile .gettempdir ()
748+ # self.nomcom.public_key.storage.location = tempfile.gettempdir()
749749 self .nomcom .public_key .save ('cert' , File (open (self .cert_file .name , 'r' )))
750750
751751 gen = Position .objects .get (nomcom = self .nomcom ,name = 'GEN' )
0 commit comments