Exemple #1
0
def test_schedule_downtime():
	'''set the status of downtime to yes and add time values'''
	url_id = 6
	start = 0
	end = 5
	result = core.schedule_downtime(url_id, start, end)
	tools.assert_equals(result.scheduled_downtime, 'yes')
def downtime(url_id):
	downtime_start = int(request.form['start'])
	downtime_end = int(request.form['end'])
	url = core.schedule_downtime(url_id, downtime_start, downtime_end)
	return redirect(url_for('view_url', url_id=url_id))