def test_date_in_s01e01_out():
    """File with date-stamp, outputs s01e01-ish name
    """

    conf = """
    {"always_rename": true,
    "select_first": true,
    "filename_with_date_and_episode": "%(seriesname)s - [%(seasonnumber)02dx%(episode)s] - %(episodename)s%(ext)s"}
    """

    out_data = run_tvnamer(
        with_files = ['scrubs.2001.10.02.avi'],
        with_config = conf,
        with_input = "")

    expected_files = ['Scrubs - [01x01] - My First Day.avi']

    verify_out_data(out_data, expected_files)
File with date-stamp, outputs s01e01-ish name
    
tests/test_datestamp_episode.py