Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 551 Bytes
import unittest
import pyramid.testing
class HomeControllerTests(unittest.TestCase):
def setUp(self):
from pypi import main
app = main({})
# noinspection PyPackageRequirements
from webtest import TestApp
self.app = TestApp(app)
def test_home_page(self):
# noinspection PyPackageRequirements
import webtest.response
response: webtest.response.TestResponse = self.app.get('/', status=200)
self.assertTrue(b'Find, install and publish Python packages' in response.body)