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 handler import Handler 9from servlet import Request 10 11class HandlerTest(unittest.TestCase): 12 13 def testInvalid(self): 14 handler = Handler(Request.ForTest('_notreal')) 15 self.assertEqual(404, handler.Get().status) 16 17if __name__ == '__main__': 18 unittest.main() 19