xAdd support for django CMS 3.4

This commit is contained in:
Iacopo Spalletti 2016-08-23 19:59:22 +02:00
commit 6dd9176617
No known key found for this signature in database
GPG key ID: BDCBC2EB289F60C6
5 changed files with 64 additions and 4 deletions

View file

@ -733,7 +733,7 @@ class ModelsTest(BaseTest):
else:
plugins = list(post1.content.cmsplugin_set.filter(language='en').order_by('path', 'depth', 'position'))
copy_plugins_to(plugins, post2.content)
new = downcast_plugins(post2.content.cmsplugin_set.all())
new = list(downcast_plugins(post2.content.cmsplugin_set.all()))
self.assertEqual(set(new[0].tags.all()), set([tag1, tag2]))
self.assertEqual(set(new[0].tags.all()), set(plugin.tags.all()))
@ -766,7 +766,7 @@ class ModelsTest(BaseTest):
else:
plugins = list(post1.content.cmsplugin_set.filter(language='en').order_by('path', 'depth', 'position'))
copy_plugins_to(plugins, post2.content)
new = downcast_plugins(post2.content.cmsplugin_set.all())
new = list(downcast_plugins(post2.content.cmsplugin_set.all()))
self.assertEqual(set(new[0].authors.all()), set([self.user]))
def test_multisite(self):