# Path: likert_field/widgets.py
# class LikertTextField(widgets.TextInput):
#     """A Likert field represented as a text input"""
# 
#     def render(self, name, value, attrs=None):
#         """
#         Returns this Widget rendered as HTML, as a Unicode string.
#         """
#         rendered_attrs = {'class': 'likert-field'}
#         if attrs:
#             rendered_attrs.update(attrs)
# 
#         return super(LikertTextField, self).render(name, value, rendered_attrs)


from django.forms import widgets
from django.test import SimpleTestCase
from likert_field.widgets import LikertTextField
# -*- coding: utf-8 -*-
from __future__ import unicode_literals




class LikertTextFieldTestCase(SimpleTestCase):

    def test_instantiation(self):
        w = LikertTextField()
        self.assertIsInstance(w, widgets.TextInput)

    def test_has_likert_class(self):

# Path: likert_field/widgets.py
# class LikertTextField(widgets.TextInput):
#     """A Likert field represented as a text input"""
# 
#     def render(self, name, value, attrs=None):
#         """
#         Returns this Widget rendered as HTML, as a Unicode string.
#         """
#         rendered_attrs = {'class': 'likert-field'}
#         if attrs:
#             rendered_attrs.update(attrs)
# 
#         return super(LikertTextField, self).render(name, value, rendered_attrs)


# Path: test_suite/test_widgets.py
from django.forms import widgets
from django.test import SimpleTestCase
from likert_field.widgets import LikertTextField

# -*- coding: utf-8 -*-
from __future__ import unicode_literals




class LikertTextFieldTestCase(SimpleTestCase):

    def test_instantiation(self):
        w = LikertTextField()
        self.assertIsInstance(w, widgets.TextInput)

    def test_has_likert_class(self):

        w = LikertTextField()