• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 fake_fetchers import ConfigureFakeFetchers
9from handler import Handler
10from servlet import Request
11
12class HandlerTest(unittest.TestCase):
13  def setUp(self):
14    ConfigureFakeFetchers()
15
16  def testInvalid(self):
17    handler = Handler(Request.ForTest('_notreal'))
18
19    self.assertEqual(404, handler.Get().status)
20
21if __name__ == '__main__':
22  unittest.main()
23