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 = TestApp(app)
def test_home_page(self):
# noinspection PyPackageRequirements
import webtest.response
response: webtest.response.TestResponse ='/', status=200)
self.assertTrue(b'Find, install and publish Python packages' in response.body)