コード例 #1
0
 def test_sanity(self):
     testuser = mommy.make(settings.AUTH_USER_MODEL)
     selector = htmls.S(
         listbuilder_role.ExaminerRoleItemValue(value=testuser).render())
     self.assertTrue(
         selector.exists(
             '.devilry-frontpage-listbuilder-roleselect-itemvalue'))
コード例 #2
0
 def test_description(self):
     testuser = mommy.make(settings.AUTH_USER_MODEL)
     selector = htmls.S(
         listbuilder_role.ExaminerRoleItemValue(value=testuser).render())
     self.assertEqual(
         'Examiners give students feedback on their deliveries.',
         selector.one(
             '.django-cradmin-listbuilder-itemvalue-titledescription-description'
         ).alltext_normalized)
コード例 #3
0
 def test_title(self):
     testuser = mommy.make(settings.AUTH_USER_MODEL)
     selector = htmls.S(
         listbuilder_role.ExaminerRoleItemValue(value=testuser).render())
     self.assertEqual(
         'Examiner',
         selector.one(
             '.django-cradmin-listbuilder-itemvalue-titledescription-title'
         ).alltext_normalized)