def test_invalid_assessment_examples(self, data):
     success, msg = validate_assessment_examples(data['rubric'],
                                                 data['assessments'],
                                                 STUB_I18N)
     self.assertFalse(success)
     self.assertGreater(len(msg), 0)
示例#2
0
 def test_invalid_assessment_examples(self, data):
     success, msg = validate_assessment_examples(data['rubric'], data['assessments'], STUB_I18N)
     self.assertFalse(success)
     self.assertGreater(len(msg), 0)
 def test_valid_assessment_examples(self, data):
     success, msg = validate_assessment_examples(data['rubric'],
                                                 data['assessments'],
                                                 STUB_I18N)
     self.assertTrue(success)
     self.assertEqual(msg, '')
示例#4
0
 def test_valid_assessment_examples(self, data):
     success, msg = validate_assessment_examples(data['rubric'], data['assessments'], STUB_I18N)
     self.assertTrue(success)
     self.assertEqual(msg, u'')