--- a/test.py Wed Aug 10 22:11:50 2016 +0800
+++ b/test.py Wed Aug 10 22:25:43 2016 +0800
response = self.c.get('/')
self.assertIn('Fruit Bar', response.data)
- self.assertRegexpMatches(response.data, 'bundles/fruitbar\.[0-9a-f]+\.js')
+ bundle_re = 'bundles/fruitbar\.[0-9a-f]+\.js'
+ self.assertRegexpMatches(response.data, bundle_re)
class ResourceTestCase(BaseTestCase):