<filename>tests/test_news.py<gh_stars>0
import unittest
from app.models import News

class NewsTest(unittest.TestCase):
    """
    Test Class to test the behaviour of the News class
    """

    def setUp(self):
        """
        Set up method that will run before every Test
        """

        self.new_news = News(1970,'Breaking News','A fatal Accident','/khsjha27hbs',10,'en','us')

    def test_instance(self):
        self.assertTrue(isinstance(self.new_news,News))

    
<filename>tests/test_news.py<gh_stars>0
import unittest
from app.models import News

class NewsTest(unittest.TestCase):
    """
    Test Class to test the behaviour of the News class
    """

    def setUp(self):
        """
        Set up method that will run before every Test
        """

        self.new_news = News(1970,'Breaking News','A fatal Accident','/khsjha27hbs',10,'en','us')

    def test_instance(self):
        self.assertTrue(isinstance(self.new_news,News))

    
Test Class to test the behaviour of the News class Set up method that will run before every Test