def test_split_urls_list_concatenated_into_single_element(self): list_size = 10 valid_split_url_list = [ ''.join([ self.VALID_URL_FORMAT.format(id_) for id_ in range(0, list_size) ]) ] updated_list = UrlArgProcessing.split_urls(valid_split_url_list) assert_not_equals(len(valid_split_url_list), len(updated_list)) assert_equals(len(updated_list), list_size)
def test_split_urls_with_concatenated_element(self): list_size = 10 valid_split_url_list = [ self.VALID_URL_FORMAT.format(id_) for id_ in range(1, 10) ] valid_split_url_list.append(valid_split_url_list[-1] + valid_split_url_list[-2] + valid_split_url_list[-3]) list_size += 2 updated_list = UrlArgProcessing.split_urls(valid_split_url_list) assert_not_equals(len(valid_split_url_list), len(updated_list)) assert_equals(len(updated_list), list_size)
def test_split_urls_all_elems_valid_urls(self): valid_split_url_list = [ self.VALID_URL_FORMAT.format(id_) for id_ in range(1, 10) ] updated_list = UrlArgProcessing.split_urls(valid_split_url_list) assert_equals(len(valid_split_url_list), len(updated_list))