Description: fix tests failure when chardet is used
 This only happens when chardet is installed (and thus used for
 encoding detection).
Author: Dmitry Shachnev <mitya57@ubuntu.com>
Forwarded: yes, https://code.launchpad.net/~mitya57/beautifulsoup/tests/+merge/241832
Last-Update: 2014-11-14

--- a/bs4/tests/test_soup.py
+++ b/bs4/tests/test_soup.py
@@ -271,9 +271,9 @@
             dammit.unicode_markup, """<foo>''""</foo>""")
 
     def test_detect_utf8(self):
-        utf8 = b"\xc3\xa9"
+        utf8 = b"\xc3\xa9\xc3\xa9"
         dammit = UnicodeDammit(utf8)
-        self.assertEqual(dammit.unicode_markup, u'\xe9')
+        self.assertEqual(dammit.unicode_markup, u'\xe9\xe9')
         self.assertEqual(dammit.original_encoding.lower(), 'utf-8')
 
     def test_convert_hebrew(self):
