def get_timestamped_filename(): """Return a timestamped text filename.""" return '{ts}.txt'.format(ts=get_timestamp_from_year_to_second())
def test_get_timestamp_from_year_to_second_04(self): res = dat.get_timestamp_from_year_to_second(separator=True, date=self.dt) assert res == '2005_03_18_025831'
def get_timestamped_filename(): """Return a timestamped text filename.""" return "{ts}.txt".format(ts=get_timestamp_from_year_to_second())
def test_get_timestamp_from_year_to_second_02(self): res = dat.get_timestamp_from_year_to_second(separator=True) assert re.search('^\d{4}_\d\d_\d\d_\d{6}$', res)
def test_get_timestamp_from_year_to_second_03(self): res = dat.get_timestamp_from_year_to_second(date=self.dt) assert res == '20050318_025831'
def test_get_timestamp_from_year_to_second_01(self): res = dat.get_timestamp_from_year_to_second() assert re.search('^\d{8}_\d{6}$', res)