Fixes issue 120.
diff --git a/python2/httplib2test.py b/python2/httplib2test.py
index ed04799..1eb474e 100755
--- a/python2/httplib2test.py
+++ b/python2/httplib2test.py
@@ -1382,6 +1382,13 @@
         digest = res['digest']
         self.assertEqual('myrealm', digest['realm'])
 
+    def testParseWWWAuthenticateMalformed(self):
+        try:
+          res = httplib2._parse_www_authenticate({'www-authenticate':'OAuth "Facebook Platform" "invalid_token" "Invalid OAuth access token."'})
+          self.fail("should raise an exception")
+        except httplib2.MalformedHeader:
+          pass
+
     def testDigestObject(self):
         credentials = ('joe', 'password')
         host = None