~bjornt/grammatista/language-words

« back to all changes in this revision

Viewing changes to src/grammatista/tests/test_exercise.py

  • Committer: Bjorn Tillenius
  • Date: 2008-10-31 21:04:56 UTC
  • Revision ID: bjorn@tillenius.me-20081031210456-4qotrsz8ww3gkilw
Add interface test for Exercise.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
    def setUp(self):
75
75
        createDB()
76
76
        self.factory = ObjectFactory()
77
 
        #self.exercise = self.factory.make_exercise()
78
77
 
79
78
    def test_interface(self):
80
79
        # Exercise implements IExercise.
81
 
        #verifyObject(IExercise, self.exercise)
82
 
        pass
 
80
        exercise = self.factory.make_exercise()
 
81
        verifyObject(IExercise, exercise)
83
82
 
84
83
    def test_create_no_word(self):
85
84
        # If no word is provided, one of the word category's words is