Esempio n. 1
0
def test_setCurrentDate(tmpdir):
	p = tmpdir.mkdir("sub")
	sd = SDfile(str(p), "location")
	curDate = time.strftime("12_12_12")
	sd.setCurrentDate(curDate)
	assert sd.getCurrentDate() == curDate
Esempio n. 2
0
def test_getCurrentDate(tmpdir):
	p = tmpdir.mkdir("sub")
	sd = SDfile(str(p), "location")
	curDate = time.strftime("%d_%m_%Y")
	assert sd.getCurrentDate() == curDate