def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.new_source = Sources('abc-news-au', 'ABC NEWS',
                               'The best news in Australia',
                               'https://abcnews.au', 'general', 'en', 'au')
Exemple #2
0
 def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.sources = Sources(1234, 'The language of Databases',
                            'A look at how python is taking over the web',
                            '/khsjha27hbs.com', 'tech', 'en', 'U.S.A')
Exemple #3
0
 def setUp(self):
     '''
     Function that will run before every test
     '''
     self.new_source = Sources('allnews', 'Latest News',
                               'We have the latest updates',
                               'https://bing.com', 'general', 'us')
 def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.new_sources = Sources(1234, 'A thrilling new Python Series',
                                '/khsjha27hbs', 8.5, 129993, 'ffffffffffff',
                                'date')
Exemple #5
0
 def test_source(self):
     '''
     test_source checks that new news source objects are created and instantiated
     '''
     self.new_source = Sources(1, 'bbc-news', 'Jesus', 'is alive', 'eng',
                               'who', 'kenya')
     self.assertTrue(isinstance(self.new_source, Sources))
Exemple #6
0
 def setUp(self):
     """
     Set up method that will run before every test
     """
     self.sources = Sources(1, 'Amazing news', 'Thrilling news',
                            'https://abcnews.go.com', 'Technology',
                            'UnitedStates', 'English')
 def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.new_sources = Sources(
         1234, 'Python Must Be Crazy', 'A thrilling new Python Series',
         'https://image.tmdb.org/t/p/w500/khsjha27hbs', 8.5, 129993)
Exemple #8
0
 def setUp(self):
     '''
     Setup function that will run before every test
     '''
     self.new_source = Sources('mynews', 'My News',
                               'We have the latest updates',
                               'https://google.com', 'general', 'ke')
Exemple #9
0
 def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.new_source = Sources(1234, 'ABC News', 'description',
                               '"http://www.abc.net.au/news"', 'general',
                               'en', 'au')
Exemple #10
0
 def setUp(self):
     '''
     Set up method to run before each test case
     '''
     self.news_source = Sources(
         'abc-news-au', 'ABC News (AU)',
         'Australia\'s most trusted source of local, national and world news. Comprehensive, independent, in-depth analysis, the latest business, sport, weather and more.',
         "http://www.abc.net.au/news", "general")
 def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.new_source = Sources('Daily Nation', 'Nation news',
                               'Kipchoge breaks his own record',
                               'dailynation.co.ke', 'general', 'Kenya',
                               'eng')
Exemple #12
0
 def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.new_source = Sources(
         'CNN', 'CNN News',
         'Cable News Newtork, this is the leading studio in news dispatch worldwide',
         'cnn.com', 'general', 'U.S.A', 'en')
Exemple #13
0
 def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.new_source = Sources(
         "ars-technica", "Ars Technica",
         "The PC enthusiasts resource. Power users and the tools they love, without computing religion.",
         "https://arynews.tv/ud/")
Exemple #14
0
    def setUp(self):
        '''
    Tests behaviour of source class
    '''

        self.new_source = Sources('cnn', 'cnn_news',
                                  'For the best news in town', 'cnn.com',
                                  'general', 'english', 'us')
Exemple #15
0
 def setUp(self):
     '''
     Methode that runs before every test.
     '''
     self.source = Sources(
         "cnn", "cnn",
         "View the latest news and breaking news today for U.S., world, weather and politics",
         "http:url//us.cnn.com", "general", "en", "us")
Exemple #16
0
 def setUp(self):
     '''
     setUo method runs before each test
     '''
     self.new_source = Sources('abc-news', 'ABC news',
                               'Your trusted source for breaking news',
                               "https://abcnews.go.com", "general", "en",
                               "us")
Exemple #17
0
 def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.new_source = Sources(
         1234, 'ABC News',
         'Your trusted source for breaking news, analysis, exclusive interviews, headlines, and videos at ABCNews.com.',
         'https://abcnews.go.com', 'general', 'en')
Exemple #18
0
 def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.new_source = Sources(
         "1234", "Bbc",
         "Australia's national carrier Qantas will require future international travelers to prove they have been vaccinated",
         "https://www.bbc.com/news/business", "Business", "English", "UK")
 def setUp(self):
     '''
     Setup method that will run before every test
     '''
     self.new_sources = Sources(
         'cbs-news', 'CBS News',
         'CBS News: dedicated to providing the best in journalism under standards it pioneered at the dawn of radio and television and continue in the digital age.',
         'http://www.cbsnews.com', 'general', 'en', 'us')
Exemple #20
0
 def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.new_source = Sources(
         'bbc-sport', 'BBC Sport',
         'The home of BBC Sport online. Includes live sports coverage, breaking news, results, video, audio and analysis on Football, F1, Cricket, Rugby Union, Rugby League, Golf, Tennis and all the main world sports, plus major events such as the Olympic Games.',
         'http://www.bbc.co.uk/sport', 'sports', 'en', 'gb')
Exemple #21
0
 def setUp(self):
     '''
     the setup method to run befor evry test
     '''
     self.new_article = News('bbc', 'raphael', 'football',
                             'manchester looses', 'www', 'src', 'nov',
                             'scores')
     self.new_sources = Sources('BBC', 'Global news', 'general', 'true')
Exemple #22
0
 def setUp(self):
     '''
     This will run before every other test
     '''
     self.new_source = Sources(
         'ansa', 'ANSA.it',
         'Agenzia ANSA: ultime notizie, foto, video e approfondimenti su...',
         'http://www.ansa.it', 'general', 'it', 'it')
Exemple #23
0
 def setUp(self):
     """
     Method that runs before each other test runs
     """
     self.new_source = Sources('abc-news', 'ABC news',
                               'Your trusted source for breaking news',
                               "https://abcnews.go.com", "general", "en",
                               "us")
 def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.new_source = Sources(
         'CNN', 'CNN News',
         'Cable News Newtork that is a leader in providing news worldwide',
         'cnn.com', 'general', 'U.S.A', 'en')
 def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.new_source = Sources(
         "abc-news", "ABC News",
         "Your trusted source for breaking news, analysis, exclusive interviews, headlines, and videos at ABCNews.com.",
         "https://abcnews.go.com", "general", "en", "us")
Exemple #26
0
 def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.new_source = Sources(
         "foxnews", 'Fox News', 'Joaqin Guzman is dangerous',
         "https://www.foxnews.com/us/el-chapo-accused-of-drugging-rapping-girls-as-young-as-13-in-court-documents"
     )
 def setUp(self):
     '''
 Set up method that will run before every test
 '''
     self.new_source = Sources('bloomberg', 'Bloomberg News',
                               'Your trusted source for breaking news',
                               'general', 'us', 'en',
                               'https://abcnews.go.com')
Exemple #28
0
    def setUp(self):
        '''
        Set up method that will run before every test
        '''

        self.new_source = Sources('1234', 'NBA games', 'all stars playing',
                                  'https://world cup finals', 'tenis', '8.5',
                                  '1122546')
 def setUp(self):
     '''
     Set up method that will run before every Test
     '''
     self.new_source = Sources(
         'aftenposten', 'Aftenposten',
         'Norges ledende nettavis med alltid oppdaterte nyheter innenfor innenriks, utenriks, sport og kultur.',
         'https://www.aftenposten.no/', 'general')
Exemple #30
0
    def setUp(self):
        '''
    Tests behaviour of source class
    '''

        self.new_source = Sources('abc', 'abc_news',
                                  'Your trusted source for breaking news',
                                  'abc.com', 'general', 'english', 'us')