def METHOD_NAME(self, fake_mtime, db_session):
    """Test dataset constructor"""
    template = Template(
        name="run",
        idxname="run-data",
        template_name="tname",
        file="run.json",
        template_pattern="drb.v1.run.*",
        index_template="drb.v1.run.{year}-{month}",
        settings={"none": False},
        mappings={"properties": None},
        version=5,
    )
    template.add()
    assert template.name == "run"
    assert template.mtime == datetime.datetime(2021, 1, 29, 0, 0, 0)
    assert "run: drb.v1.run.{year}-{month}" == str(template)