def test_correct_devilryrole(self):
     testuser = mommy.make(settings.AUTH_USER_MODEL)
     selector = htmls.S(
         listbuilder_role.StudentRoleItemValue(value=testuser).render())
     self.assertTrue(
         selector.exists(
             '.devilry-frontpage-listbuilder-roleselect-itemvalue-student'))
 def test_description(self):
     testuser = mommy.make(settings.AUTH_USER_MODEL)
     selector = htmls.S(
         listbuilder_role.StudentRoleItemValue(value=testuser).render())
     self.assertEqual(
         'Students can upload deliveres and browse their own delivery and feedback history.',
         selector.one(
             '.django-cradmin-listbuilder-itemvalue-titledescription-description'
         ).alltext_normalized)
 def test_title(self):
     testuser = mommy.make(settings.AUTH_USER_MODEL)
     selector = htmls.S(
         listbuilder_role.StudentRoleItemValue(value=testuser).render())
     self.assertEqual(
         'Student',
         selector.one(
             '.django-cradmin-listbuilder-itemvalue-titledescription-title'
         ).alltext_normalized)