sampleapp/sampleapp/tests.py
author Christophe de Vienne <christophe@unlish.com>
Sun, 04 Jan 2015 00:12:29 +0100
changeset 11538 c8f42c41f38c
parent 11483 7b7ed56bf2fb
permissions -rw-r--r--
Provides requirements for rtd Related to #4849313

import unittest

from pyramid import testing


class ViewTests(unittest.TestCase):
    def setUp(self):
        self.config = testing.setUp()

    def tearDown(self):
        testing.tearDown()

    def test_my_view(self):
        from .views import my_view
        request = testing.DummyRequest()
        info = my_view(request)
        self.assertEqual(info['project'], 'cubi')