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