import unittest
from app.models import Comment, Pitch
from app import db

class TestPitchComment(unittest.TestCase):

    def setUp(self):
        self.new_pitch = Pitch(post = "doit", category='Quotes')
        self.new_comment = Comment(comment = "good comment", pitch=self.new_pitch)
        
    def test_instance(self):
        self.assertTrue(isinstance(self.new_comment,Comment))


    def test_check_instance_variables(self):
        self.assertEquals(self.new_comment.comment,"good comment")
        self.assertEquals(self.new_comment.pitch,self.new_pitch, 'do it')
[((8, 25, 8, 64), 'app.models.Pitch', 'Pitch', (), '', False, 'from app.models import Comment, Pitch\n'), ((9, 27, 9, 82), 'app.models.Comment', 'Comment', (), '', False, 'from app.models import Comment, Pitch\n')]