import unittest
from app.models import article

Article = article.Article
 

class ArticleTest(unittest.TestCase):
    '''
    Test Class to test the behaviour of the Article class
    '''

    def setUp(self):
        '''
        Set up method that will run before every Test
        '''
        self.new_article = Article('Candy','terror attack in garisa','terror attack in garisa','http://www.bbc.co.uk/news','http://www.bbc.co.uk/news','general','terror attack in garisa')

    def test_instance(self):
        self.assertTrue(isinstance(self.new_article,Article))


# if __name__ == '__main__':
#     unittest.main()