def setUp(self, mock_random): self.temp_dir = mkdtemp() mock_random.randint.return_value = 1020 timestamp = datetime(1999, 9, 9, 1, 2) vod_config = parse_config(find_data_file(default_config_path)) self.vod_config = vod_config._replace(ecn_2009=True) self.vod_package = generate_metadata(reference_mp4, self.vod_config, timestamp=timestamp) self.ams_expected = { "Provider": "001", "Product": "MOD", "Version_Major": "1", "Version_Minor": "0", "Creation_Date": "1999-09-09", "Provider_ID": "example.com", }
def setUp(self, mock_random): self.temp_dir = mkdtemp() mock_random.randint.return_value = 1020 timestamp = datetime(1999, 9, 9, 1, 2) vod_config = parse_config(find_data_file(default_config_path)) self.vod_config = vod_config._replace(ecn_2009=True) self.vod_package = generate_metadata( reference_mp4, self.vod_config, timestamp=timestamp ) self.ams_expected = { "Provider": "001", "Product": "MOD", "Version_Major": '1', "Version_Minor": '0', "Creation_Date": "1999-09-09", "Provider_ID": "example.com", }
def setUp(self): with open(find_data_file(default_config_path), mode="r") as infile: self.config_lines = [line.strip() for line in infile if line]
def setUp(self): with open(find_data_file(default_config_path), mode='r') as infile: self.config_lines = [line.strip() for line in infile if line]