Commit b280a85fd12337f663b060042aab6cf890da00fe

Authored by Lucas Kanashiro
1 parent fedd39ac

super_archives: Fix flake8 in test

Signed-off-by: Lucas Kanashiro <kanashiro.duarte@gmail.com>
Signed-off-by: Tomaz Martins <tomaz.r.martins@gmail.com>
colab/super_archives/tests/test_utils_blocks.py
1 from django.test import TestCase 1 from django.test import TestCase
2 2
3 -from ..utils.blocks import EmailBlock, EmailBlockParser 3 +from ..utils.blocks import EmailBlock
4 4
5 5
6 class TestEmailBlock(TestCase): 6 class TestEmailBlock(TestCase):
@@ -11,13 +11,13 @@ class TestEmailBlock(TestCase): @@ -11,13 +11,13 @@ class TestEmailBlock(TestCase):
11 def test_html2text_without_br_tag(self): 11 def test_html2text_without_br_tag(self):
12 html = '<a>Hello, world!</a>' 12 html = '<a>Hello, world!</a>'
13 text = self.email_block._html2text(html) 13 text = self.email_block._html2text(html)
14 - 14 +
15 self.assertEquals(text, 'Hello, world!') 15 self.assertEquals(text, 'Hello, world!')
16 16
17 def test_html2text_with_br_tag(self): 17 def test_html2text_with_br_tag(self):
18 html = '<a>Hello, world</a>!<br><p>Test with br tag</p>!' 18 html = '<a>Hello, world</a>!<br><p>Test with br tag</p>!'
19 text = self.email_block._html2text(html) 19 text = self.email_block._html2text(html)
20 - 20 +
21 self.assertEquals(text, 'Hello, world!\nTest with br tag!') 21 self.assertEquals(text, 'Hello, world!\nTest with br tag!')
22 22
23 def test_mark_links(self): 23 def test_mark_links(self):