# Path: texts/models.py
# class ShowerThought(models.Model):
#     date = models.DateField(auto_now_add=True)
#     post_id = models.CharField(max_length=20)
#     thought_text = models.CharField(max_length=500)
#     url = models.URLField(max_length=300, null=True, blank=True)
#     active = models.BooleanField(default=True)
#     bot_notified = models.BooleanField(default=False)
# 
#     def __unicode__(self):
#         return str(self.date) + ' ' + self.thought_text


import unittest
import util.showerthoughts
from texts.models import ShowerThought


class TestFetch(unittest.TestCase):
    def test_fetch(self):
        thought = util.showerthoughts.get_todays_thought()
        print thought

# Path: texts/models.py
# class ShowerThought(models.Model):
#     date = models.DateField(auto_now_add=True)
#     post_id = models.CharField(max_length=20)
#     thought_text = models.CharField(max_length=500)
#     url = models.URLField(max_length=300, null=True, blank=True)
#     active = models.BooleanField(default=True)
#     bot_notified = models.BooleanField(default=False)
# 
#     def __unicode__(self):
#         return str(self.date) + ' ' + self.thought_text


# Path: tests/test_showerthoughts.py
import unittest
import util.showerthoughts
from texts.models import ShowerThought



class TestFetch(unittest.TestCase):
    def test_fetch(self):
        thought = util.showerthoughts.get_todays_thought()
        print thought

        print ShowerThought.objects.all()