mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
Use saner test assertion
This commit is contained in:
parent
3d5d70db41
commit
e4acf6e754
1 changed files with 3 additions and 3 deletions
|
|
@ -123,9 +123,9 @@ class DbTemplatesTestCase(TestCase):
|
|||
t.save()
|
||||
call_command('sync_templates', force=True,
|
||||
verbosity=0, overwrite=DATABASE_TO_FILES)
|
||||
self.assertTrue(
|
||||
'modified' in io.open(temp_template_path,
|
||||
encoding='utf-8').read().decode('utf-8'))
|
||||
self.assertEqual(u'temp test modified',
|
||||
io.open(temp_template_path,
|
||||
encoding='utf-8').read())
|
||||
|
||||
call_command('sync_templates', force=True, verbosity=0,
|
||||
delete=True, overwrite=DATABASE_TO_FILES)
|
||||
|
|
|
|||
Loading…
Reference in a new issue