# Path: apps/wiki/forms.py
# class WikiItemForm(ModelForm):
# 
#     class Meta:
#         model = WikiItem
#         exclude = ('slug', )
# 
# Path: apps/wiki/models.py
# class WikiItem(models.Model):
#     title = models.CharField(verbose_name='Título',max_length=100)
#     content = models.TextField(verbose_name='Conteúdo')
#     slug = models.SlugField(max_length=100, blank=True, unique=True)


from django.test import TestCase
from should_dsl import should
from apps.wiki.forms import WikiItemForm
from apps.wiki.models import WikiItem




class WikiFormsTests(TestCase):

    def setUp(self):
        self.wiki_item_form = WikiItemForm()

    def test_it_is_an_instance_of_WikiItem(self):

# Path: apps/wiki/forms.py
# class WikiItemForm(ModelForm):
# 
#     class Meta:
#         model = WikiItem
#         exclude = ('slug', )
# 
# Path: apps/wiki/models.py
# class WikiItem(models.Model):
#     title = models.CharField(verbose_name='Título',max_length=100)
#     content = models.TextField(verbose_name='Conteúdo')
#     slug = models.SlugField(max_length=100, blank=True, unique=True)


# Path: apps/wiki/tests/test_forms.py
from django.test import TestCase
from should_dsl import should
from apps.wiki.forms import WikiItemForm
from apps.wiki.models import WikiItem





class WikiFormsTests(TestCase):

    def setUp(self):
        self.wiki_item_form = WikiItemForm()

    def test_it_is_an_instance_of_WikiItem(self):

        self.wiki_item_form.instance |should| be_instance_of(WikiItem)