blob: 605d26017bc75df9acd20b355d9667794e170777 [file] [log] [blame]
#!/usr/bin/env python
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from cron_servlet import CronServlet
from fake_fetchers import ConfigureFakeFetchers
from handler import Handler
from servlet import Request
class HandlerTest(unittest.TestCase):
def setUp(self):
ConfigureFakeFetchers()
def testInvalid(self):
handler = Handler(Request.ForTest('_notreal'))
self.assertEqual(404, handler.Get().status)
if __name__ == '__main__':
unittest.main()