Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Python 3 Compat. in Step 03 #17

Merged
merged 8 commits into from

2 participants

This page is out of date. Refresh to see the latest.
View
2  humans/creatingux/step03/tests.py
@@ -15,4 +15,4 @@ def setUp(self):
def test_it(self):
res = self.testapp.get('/', status=200)
- self.failUnless('Hello' in res.body)
+ self.failUnless(b'Hello' in res.body)
View
10 humans/creatingux/step04/tests.py
@@ -32,14 +32,14 @@ def setUp(self):
def test_home(self):
res = self.testapp.get('/', status=200)
- self.failUnless('Home' in res.body)
+ self.failUnless(b'Home' in res.body)
def test_it(self):
res = self.testapp.get('/', status=200)
- self.failUnless('Home' in res.body)
+ self.failUnless(b'Home' in res.body)
res = self.testapp.get('/about.html', status=200)
- self.failUnless('autonomous' in res.body)
+ self.failUnless(b'autonomous' in res.body)
res = self.testapp.get('/people', status=200)
- self.failUnless('Susan' in res.body)
+ self.failUnless(b'Susan' in res.body)
res = self.testapp.get('/acme', status=200)
- self.failUnless('Silly Slogans' in res.body)
+ self.failUnless(b'Silly Slogans' in res.body)
View
8 humans/creatingux/step05/tests.py
@@ -50,10 +50,10 @@ def setUp(self):
def test_it(self):
res = self.testapp.get('/', status=200)
- self.failUnless('Home' in res.body)
+ self.failUnless(b'Home' in res.body)
res = self.testapp.get('/about.html', status=200)
- self.failUnless('autonomous' in res.body)
+ self.failUnless(b'autonomous' in res.body)
res = self.testapp.get('/people', status=200)
- self.failUnless('Susan' in res.body)
+ self.failUnless(b'Susan' in res.body)
res = self.testapp.get('/acme', status=200)
- self.failUnless('Silly Slogans' in res.body)
+ self.failUnless(b'Silly Slogans' in res.body)
View
8 humans/creatingux/step06/tests.py
@@ -56,10 +56,10 @@ def setUp(self):
def test_it(self):
res = self.testapp.get('/', status=200)
- self.failUnless('Home' in res.body)
+ self.failUnless(b'Home' in res.body)
res = self.testapp.get('/about.html', status=200)
- self.failUnless('autonomous' in res.body)
+ self.failUnless(b'autonomous' in res.body)
res = self.testapp.get('/people', status=200)
- self.failUnless('Susan' in res.body)
+ self.failUnless(b'Susan' in res.body)
res = self.testapp.get('/acme', status=200)
- self.failUnless('Silly Slogans' in res.body)
+ self.failUnless(b'Silly Slogans' in res.body)
View
8 humans/creatingux/step07/test_views.py
@@ -53,10 +53,10 @@ def setUp(self):
def test_it(self):
res = self.testapp.get('/', status=200)
- self.failUnless('Home' in res.body)
+ self.failUnless(b'Home' in res.body)
res = self.testapp.get('/about.html', status=200)
- self.failUnless('autonomous' in res.body)
+ self.failUnless(b'autonomous' in res.body)
res = self.testapp.get('/people', status=200)
- self.failUnless('Susan' in res.body)
+ self.failUnless(b'Susan' in res.body)
res = self.testapp.get('/acme', status=200)
- self.failUnless('Silly Slogans' in res.body)
+ self.failUnless(b'Silly Slogans' in res.body)
View
8 humans/creatingux/step08/test_views.py
@@ -53,10 +53,10 @@ def setUp(self):
def test_it(self):
res = self.testapp.get('/', status=200)
- self.failUnless('Home' in res.body)
+ self.failUnless(b'Home' in res.body)
res = self.testapp.get('/about.html', status=200)
- self.failUnless('autonomous' in res.body)
+ self.failUnless(b'autonomous' in res.body)
res = self.testapp.get('/people', status=200)
- self.failUnless('Susan' in res.body)
+ self.failUnless(b'Susan' in res.body)
res = self.testapp.get('/acme', status=200)
- self.failUnless('Silly Slogans' in res.body)
+ self.failUnless(b'Silly Slogans' in res.body)
View
10 humans/creatingux/step09/test_views.py
@@ -59,12 +59,12 @@ def setUp(self):
def test_it(self):
res = self.testapp.get('/', status=200)
- self.failUnless('Home' in res.body)
+ self.failUnless(b'Home' in res.body)
res = self.testapp.get('/about.html', status=200)
- self.failUnless('autonomous' in res.body)
+ self.failUnless(b'autonomous' in res.body)
res = self.testapp.get('/people', status=200)
- self.failUnless('Susan' in res.body)
+ self.failUnless(b'Susan' in res.body)
res = self.testapp.get('/acme', status=200)
- self.failUnless('Silly Slogans' in res.body)
+ self.failUnless(b'Silly Slogans' in res.body)
res = self.testapp.get('/updates.json', status=200)
- self.failUnless('888' in res.body)
+ self.failUnless(b'888' in res.body)
View
10 humans/creatingux/step10/test_views.py
@@ -59,12 +59,12 @@ def setUp(self):
def test_it(self):
res = self.testapp.get('/', status=200)
- self.failUnless('Home' in res.body)
+ self.failUnless(b'Home' in res.body)
res = self.testapp.get('/about.html', status=200)
- self.failUnless('autonomous' in res.body)
+ self.failUnless(b'autonomous' in res.body)
res = self.testapp.get('/people', status=200)
- self.failUnless('Susan' in res.body)
+ self.failUnless(b'Susan' in res.body)
res = self.testapp.get('/acme', status=200)
- self.failUnless('Silly Slogans' in res.body)
+ self.failUnless(b'Silly Slogans' in res.body)
res = self.testapp.get('/updates.json', status=200)
- self.failUnless('888' in res.body)
+ self.failUnless(b'888' in res.body)
Something went wrong with that request. Please try again.