Beispiel #1
0
 def test_translation_options(self):
     opts = translator.get_options_for_model(InheritedTestModel)
     self.assertEqual(len(opts.fields), 2)
     self.assertIsNotNone(opts.fields['title'])
     self.assertIsNotNone(opts.fields['other'])
Beispiel #2
0
 def test_question_opts(self):
     opts = translator.get_options_for_model(BaseQuestion)
     fields = opts.fields
     self.assertAttrNotNone(fields, 'label')
     self.assertAttrNotNone(fields, 'hint_text')