[test] remove custom implementation of FakeRequest.header_accept_language() (closes #3375021) stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 20 Jan 2014 09:13:12 +0100
branchstable
changeset 9434 060bd51c6779
parent 9433 dd708175dc43
child 9435 dde8ea5d7ffd
[test] remove custom implementation of FakeRequest.header_accept_language() (closes #3375021) ``Accept-Language`` should be overridable just as any other request header. Default value is "nothing" since the application should be able the empty header case.
devtools/fake.py
--- a/devtools/fake.py	Mon Jan 13 15:27:35 2014 +0100
+++ b/devtools/fake.py	Mon Jan 20 09:13:12 2014 +0100
@@ -71,10 +71,6 @@
         self._headers_in.setHeader('Cookie', cookie)
 
     ## Implement request abstract API
-    def header_accept_language(self):
-        """returns an ordered list of preferred languages"""
-        return ('en',)
-
     def http_method(self):
         return self._http_method