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, '')
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'')