# 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.contrib.auth.models import User
from lettuce import step, world
from lettuce.django import django_url
from should_dsl import should
from apps.wiki.models import WikiItem
# -*- coding: utf-8 -*-





@step(u'exist a wiki item:')
def exist_a_wiki_item(step):
    for wiki_item in step.hashes:

# 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/features/steps.py
from django.contrib.auth.models import User
from lettuce import step, world
from lettuce.django import django_url
from should_dsl import should
from apps.wiki.models import WikiItem

# -*- coding: utf-8 -*-





@step(u'exist a wiki item:')
def exist_a_wiki_item(step):
    for wiki_item in step.hashes:

        WikiItem(id=wiki_item['id'], title=wiki_item['title'], content=wiki_item['content']).save()