<reponame>dancan-sandys/News-api
import unittest
from ..app.models import NewsArticle

class TestArticles(unittest.TestCase):
    
    def setUp(self):
        
        self.new_articles = NewsArticle('Dancan','leon','Sandys','27/12/1999', 'Yesterday')
        
    def test_initialize(self):
        self.new_articles
        self.assertTrue(isinstance(self.new_articles, NewsArticle))    
        

import unittest
from ..app.models import NewsArticle

class TestArticles(unittest.TestCase):
    
    def setUp(self):
        
        self.new_articles = NewsArticle('Dancan','leon','Sandys','27/12/1999', 'Yesterday')
        
    def test_initialize(self):
        self.new_articles
        self.assertTrue(isinstance(self.new_articles, NewsArticle))