def testBadRequest(self):
    # Missing request dict.
    url = self.get_url('/register/facebook') + '?' + urllib.urlencode({'access_token': 'dummy'})
    self.assertRaisesHttpError(400, _SendAuthRequest, self._tester, url, 'POST', request_dict='')

    # Malformed request dict.
    self.assertRaisesHttpError(400, _SendAuthRequest, self._tester, url, 'POST', request_dict={'device': 'foo'})
ERROR: Verify that various malformed and missing register fields result
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/auth_test.py/AuthTestCase.testBadRequest