def test_unsupportedPath(self): # given vc = PageMetrics() expected_view_count = -1 self.repo_url = "https://api.door43.org?" # when results = vc.increment_search_params(self.repo_url) # then self.assertEquals(expected_view_count, results)
def test_validRepoNotInManifestTable(self): # given vc = PageMetrics() expected_view_count = 1 self.repo_url = "https://api.door43.org?lc=en1" # when results = vc.increment_search_params(self.repo_url) # then self.assertEquals(expected_view_count, results)
def test_valid(self): # given vc = PageMetrics() expected_view_count = self.INITIAL_VIEW_COUNT + 1 self.repo_url = "https://api.door43.org?lc=en" # when results = vc.increment_search_params(self.repo_url) # then self.assertEquals(expected_view_count, results)
def test_unsupportedPath(self): # given vc = PageMetrics() expected_view_count = -1 self.repo_url = "https://api.door43.org?" # when results = vc.increment_search_params(self.repo_url) # then self.assertEquals(expected_view_count, results)
def test_validRepoNotInManifestTable(self): # given vc = PageMetrics() expected_view_count = 1 self.repo_url = "https://api.door43.org?lc=en1" # when results = vc.increment_search_params(self.repo_url) # then self.assertEquals(expected_view_count, results)
def test_valid(self): # given vc = PageMetrics() expected_view_count = self.INITIAL_VIEW_COUNT + 1 self.repo_url = "https://api.door43.org?lc=en" # when results = vc.increment_search_params(self.repo_url) # then self.assertEquals(expected_view_count, results)