fix carousel tests/test_strides.py
from __future__ import unicode_literals
import json
+import django
import os
from bs4 import BeautifulSoup
@@ -60,13 +61,7 @@ class StridePluginTest(CascadeTestCase):
template = Template('{% load cascade_tags %}{% render_cascade "strides/simple-wrapper.json" %}')
html = template.render(self.context)
soup = BeautifulSoup(html, features='lxml')
- expected_styles = {
- 'background-color': '#42c8c6',
- 'color': '#ffffff',
- 'height': '360px',
- 'padding-left': '50px',
- 'padding-right': '50px',
- }
+ expected_styles = { 'background-color':'#42c8c6','color':'#ffffff','height':'360px','padding-left':'50px','padding-right':'50px',}
self.assertStyleEqual(soup.div.attrs['style'], expected_styles)
def upload_icon_font(self):
@@ -128,4 +123,4 @@ class StridePluginTest(CascadeTestCase):
self.assertListEqual(carousel.ol.attrs['class'], ['carousel-indicators'])
self.assertListEqual(carousel.ol.li.attrs['class'], ['active'])
slide = carousel.find(class_='carousel-inner')
- self.assertSetEqual(set(slide.div.attrs['class']), {'item', 'active'})
+ self.assertSetEqual(set(slide.div.attrs['class']), {'carousel-item', 'active'})
