Replaced a stray assert_.

This commit is contained in:
Jannis Leidel
2011-05-13 12:42:15 +02:00
parent 32b9e8963e
commit 4147f53922

View File

@@ -79,7 +79,8 @@ class CompressorTestCase(TestCase):
def test_css_mtimes(self):
is_date = re.compile(r'^\d{10}[\.\d]+$')
for date in self.css_node.mtimes:
self.assert_(is_date.match(str(float(date))), "mtimes is returning something that doesn't look like a date: %s" % date)
self.assertTrue(is_date.match(str(float(date))),
"mtimes is returning something that doesn't look like a date: %s" % date)
def test_css_return_if_off(self):
settings.COMPRESS_ENABLED = False