def test_get_non_updated_projects_returns_one_project(self): """Test JOB get non updated returns one project.""" project = ProjectFactory.create(updated='2010-10-22T11:02:00.000000') projects = get_non_updated_projects() err_msg = "There should be one outdated project." assert len(projects) == 1, err_msg assert projects[0].name == project.name, err_msg
def test_get_non_updated_projects_returns_none(self): """Test JOB get non updated returns none.""" projects = get_non_updated_projects() err_msg = "There should not be any outdated project." assert len(projects) == 0, err_msg