1#!/usr/bin/env python
2# Copyright 2013 The Chromium Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6import unittest
7
8from cron_servlet import CronServlet
9from fake_fetchers import ConfigureFakeFetchers
10from handler import Handler
11from servlet import Request
12
13class HandlerTest(unittest.TestCase):
14  def setUp(self):
15    ConfigureFakeFetchers()
16
17  def testInvalid(self):
18    handler = Handler(Request.ForTest('_notreal'))
19
20    self.assertEqual(404, handler.Get().status)
21
22if __name__ == '__main__':
23  unittest.main()
24