def test_get_date_e(self): test = '2015-08-15' util.get_date(test)
def test_get_date(self): test = '20150815' actual = util.get_date(test) from datetime import datetime assert actual == datetime(2015,8,15,0,0)