# Path: content/models.py
# class OurStory(models.Model):
# 	img = models.ImageField(upload_to='aboutus', blank=True, null=True)
# 	text = tinymce_models.HTMLField(default="")
# 	color = models.CharField(max_length=20, blank=True)
# 	order = models.PositiveIntegerField()
# 
# 	def __str__(self):
# 		return self.text
# 
# class OurTeam(models.Model):
# 	title = models.CharField(default="Our Team", max_length=200)
# 	img = models.ImageField(upload_to='aboutus', blank=True, null=True, help_text="This will be the page title image.")
# 	text = tinymce_models.HTMLField(blank=True, null=True)
# 	us_team = tinymce_models.HTMLField(blank=True, null=True, help_text="Enter a short description")
# 	peru_team = tinymce_models.HTMLField(blank=True, null=True, help_text="Enter a short description")
# 	board_team = tinymce_models.HTMLField(blank=True, null=True, help_text="Enter a short description")
# 
# class OurStoryTitle(models.Model):
# 	title = models.TextField()
# 
# 	def __str__(self):
# 		return self.title


from django.test import TestCase
from content.models import OurStory,OurTeam,OurStoryTitle
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse

class OurStoryTestCase(TestCase):
    def setUp(self):

        story1 = OurStory.objects.create(text="title 1", color="#ff0000",order=5)
        story2 = OurStory.objects.create(text="title 2",order=7)


    def test_story_have_text(self):
        """OurStory Test
            Fields tested : text,color
        """

# Path: content/models.py
# class OurStory(models.Model):
# 	img = models.ImageField(upload_to='aboutus', blank=True, null=True)
# 	text = tinymce_models.HTMLField(default="")
# 	color = models.CharField(max_length=20, blank=True)
# 	order = models.PositiveIntegerField()
# 
# 	def __str__(self):
# 		return self.text
# 
# class OurTeam(models.Model):
# 	title = models.CharField(default="Our Team", max_length=200)
# 	img = models.ImageField(upload_to='aboutus', blank=True, null=True, help_text="This will be the page title image.")
# 	text = tinymce_models.HTMLField(blank=True, null=True)
# 	us_team = tinymce_models.HTMLField(blank=True, null=True, help_text="Enter a short description")
# 	peru_team = tinymce_models.HTMLField(blank=True, null=True, help_text="Enter a short description")
# 	board_team = tinymce_models.HTMLField(blank=True, null=True, help_text="Enter a short description")
# 
# class OurStoryTitle(models.Model):
# 	title = models.TextField()
# 
# 	def __str__(self):
# 		return self.title


# Path: spanish_content/tests.py
from django.test import TestCase
from content.models import OurStory,OurTeam,OurStoryTitle
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse


class OurStoryTestCase(TestCase):
    def setUp(self):

        story1 = OurStory.objects.create(text="title 1", color="#ff0000",order=5)
        story2 = OurStory.objects.create(text="title 2",order=7)


    def test_story_have_text(self):
        """OurStory Test
            Fields tested : text,color
        """

        story1 = OurStory.objects.get(text="title 1")