2013-06-13 23:38:58 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
from django.http import HttpRequest
|
|
|
|
|
|
|
|
from openslides.projector.projector import Widget
|
|
|
|
from openslides.utils.exceptions import OpenSlidesError
|
|
|
|
from openslides.utils.test import TestCase
|
|
|
|
|
|
|
|
|
|
|
|
class WidgetObject(TestCase):
|
|
|
|
def test_error(self):
|
|
|
|
with self.assertRaises(OpenSlidesError):
|
2013-09-25 10:01:01 +02:00
|
|
|
Widget(HttpRequest(), name='chahghuyeim8ie0Noong')
|
2013-09-07 15:19:03 +02:00
|
|
|
|
|
|
|
def test_repr(self):
|
|
|
|
w = Widget(HttpRequest(), name='abcdefgäöüß', html='<strong>html</strong>')
|
|
|
|
self.assertEqual(repr(w), repr('Abcdefgäöüß'))
|