def test_error_messages(self): """Test the error messages of the requests.""" b = BaseRequest('www.example.com') for code in b.error_messages: msg = b.error_messages[code] assert msg in b._error_message(code, msg)
def test_error_messages(self): """Test the error messages of the requests.""" b = BaseRequest('www.example.com') for code, msg in b.error_messages.iteritems(): self.assertIn(msg, b._error_message(code, msg))
def test_error_messages(self): """Test the error messages of the requests.""" b = BaseRequest('www.example.com') for code, msg in b.error_messages.iteritems(): self.assertIn(msg, b._error_message(code, msg))
def test_error_messages(self): """Test the error messages of the requests.""" b = BaseRequest('www.example.com') for code in b.error_messages: msg = b.error_messages[code] assert msg in b._error_message(code, msg)