<gh_stars>10-100
# Copyright 2014 The guava 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
import guava


class MyController(guava.controller.Controller):

    def index(self):
        pass


class TestController(unittest.TestCase):

    def setUp(self):
        pass

    def test_controller(self):
        c = MyController()

        self.assertTrue(c.set_header != None)
        self.assertTrue(c.write != None)
        self.assertTrue(c.set_status_code != None)
        self.assertTrue(c.redirect != None)
        self.assertTrue(c.before_action != None)
        self.assertTrue(c.after_action != None)
        self.assertTrue(c.set_cookie != None)

        self.assertEqual(c.GET, {})


if __name__ == '__main__':
    unittest.main()

# Copyright 2014 The guava 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
import guava


class MyController(guava.controller.Controller):

    def index(self):
        pass


class TestController(unittest.TestCase):

    def setUp(self):
        pass

    def test_controller(self):
        c = MyController()

        self.assertTrue(c.set_header != None)
        self.assertTrue(c.write != None)
        self.assertTrue(c.set_status_code != None)
        self.assertTrue(c.redirect != None)
        self.assertTrue(c.before_action != None)
        self.assertTrue(c.after_action != None)
        self.assertTrue(c.set_cookie != None)

        self.assertEqual(c.GET, {})


if __name__ == '__main__':
    unittest.main()
# Copyright 2014 The guava Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file.