Download:
child 73:c859feab1f4a
parent 71:f1801d827da2
72:b7850abdf559
Anton Shestakov <av6@dwimlabs.net>, Wed, 02 Mar 2016 21:25:04 +0800
test: use TestCase.assertIn() instead of assert x in y

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
test.py file | annotate | diff | comparison | revisions
--- a/test.py Wed Mar 02 21:24:23 2016 +0800
+++ b/test.py Wed Mar 02 21:25:04 2016 +0800
@@ -18,7 +18,7 @@
class IndexTestCase(BaseTestCase):
def test_index(self):
response = self.c.get('/')
- assert 'Fruit Bar' in response.data
+ self.assertIn('Fruit Bar', response.data)
self.assertRegexpMatches(response.data, 'bundles/fruitbar\.[0-9a-f]+\.js')