import unittest
from app.models import Blog

class BlogTest(unittest.TestCase):
    '''
    Test Class to test the behaviour of the Pitch class
    '''

    def setUp(self):
        '''
        Set up method that will run before every Test
        '''
        self.new_blog = Blog(1,
                               'Python Must Be Crazy',
                               'A thrilling new Python Series',
                               'Regine',
                               2019)

    def test_instance(self):
        self.assertTrue(isinstance(self.new_blog, Blog))
import unittest
from app.models import Blog

class BlogTest(unittest.TestCase):
    '''
    Test Class to test the behaviour of the Pitch class
    '''

    def setUp(self):
        '''
        Set up method that will run before every Test
        '''
        self.new_blog = Blog(1,
                               'Python Must Be Crazy',
                               'A thrilling new Python Series',
                               'Regine',
                               2019)

    def test_instance(self):
        self.assertTrue(isinstance(self.new_blog, Blog))
Test Class to test the behaviour of the Pitch class Set up method that will run before every Test