web/test/unittest_propertysheet.py
changeset 9674 96549de9dd70
parent 7791 31bb51ea5485
child 9675 8aabfefc8a81
--- a/web/test/unittest_propertysheet.py	Wed Apr 09 11:25:45 2014 +0200
+++ b/web/test/unittest_propertysheet.py	Tue Apr 08 17:39:39 2014 +0200
@@ -35,12 +35,12 @@
                           'a {bgcolor: #FFFFFF; size: 1%;}')
         self.assertEqual(ps.process_resource(DATADIR, 'pouet.css'),
                           CACHEDIR)
-        self.assertTrue('pouet.css' in ps._cache)
+        self.assertIn('pouet.css', ps._cache)
         self.assertFalse(ps.need_reload())
         os.utime(join(DATADIR, 'sheet1.py'), None)
-        self.assertTrue('pouet.css' in ps._cache)
+        self.assertIn('pouet.css', ps._cache)
         self.assertTrue(ps.need_reload())
-        self.assertTrue('pouet.css' in ps._cache)
+        self.assertIn('pouet.css', ps._cache)
         ps.reload()
         self.assertFalse('pouet.css' in ps._cache)
         self.assertFalse(ps.need_reload())