# 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
        story1 = OurStory.objects.get(text="title 1")
        story2 = OurStory.objects.get(order=7)
        self.assertEqual(story1.text, 'title 1')
        # self.assertEqual(story2,None)

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

        team1 = OurTeam.objects.create(text="team 1", us_team="us_team_us_team_us_team_us_team",peru_team="peru_teamperu_team_peru_team",board_team="board_team")
        team2 = OurTeam.objects.create(text="team 2", us_team="team_us",peru_team="team_peru",board_team="team_board")


    def test_team_have_text(self):
        """OurStory Test
            Fields tested : text,color
        """
        team1 = OurTeam.objects.get(text="team 1")
        team2 = OurTeam.objects.get(text="team 2")
        self.assertEqual(team1.text, 'team 1')
        self.assertEqual(team2.us_team,'team_us')

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

        storyTitle1 = OurStoryTitle.objects.create(title="LightandLeadership")

    def test_team_have_text(self):
        """OurStoryTitle Test
            Fields tested : title
        """

# 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

        story1 = OurStory.objects.get(text="title 1")
        story2 = OurStory.objects.get(order=7)
        self.assertEqual(story1.text, 'title 1')
        # self.assertEqual(story2,None)

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

        team1 = OurTeam.objects.create(text="team 1", us_team="us_team_us_team_us_team_us_team",peru_team="peru_teamperu_team_peru_team",board_team="board_team")
        team2 = OurTeam.objects.create(text="team 2", us_team="team_us",peru_team="team_peru",board_team="team_board")


    def test_team_have_text(self):
        """OurStory Test
            Fields tested : text,color
        """
        team1 = OurTeam.objects.get(text="team 1")
        team2 = OurTeam.objects.get(text="team 2")
        self.assertEqual(team1.text, 'team 1')
        self.assertEqual(team2.us_team,'team_us')

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

        storyTitle1 = OurStoryTitle.objects.create(title="LightandLeadership")

    def test_team_have_text(self):
        """OurStoryTitle Test
            Fields tested : title
        """

        storyTitle1 = OurStoryTitle.objects.get(title="LightandLeadership")