Commits

Anonymous committed 2c811b0

Ccompleted test_rename_links_and_move_file() - now checks to see that destination holds the moved file.

  • Participants
  • Parent commits abdad7a

Comments (0)

Files changed (1)

File psmodulecheck/tests/test_questions.py

 
         cls.good_link_file = "qt-intro-m01-c01.wmv"
         open(cls.good_link_file, 'w+').close()
+        cls.config = proj.config
+        # cls.destination_path = proj.config.full_course_destination_prefix
 
     @classmethod
     def tearDownClass(cls):
 
     def test_rename_links_and_move_file(self):
         self.q.rename_links_and_move_file(self.good_data)
-        #todo need to check and see if new questions.txt file created.
-        #and if it has the proper links
+        dest_q_file = os.path.join(self.config.full_course_destination_prefix, self.config.get_question_filename())
+        actual = os.path.isfile(dest_q_file)
+        self.assertTrue(actual)
 
 
 class QuestionTestsBadData(unittest.TestCase):