help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
whatsapp-chatbot
/
tests
RSK World
whatsapp-chatbot
WhatsApp Chatbot - Python Flask + Twilio + Admin Dashboard + Multilingual Support + Sentiment Analysis + Booking Management
tests
  • __pycache__
  • test_bot.py780 B
test_bot.py
tests/test_bot.py
Raw Download
Find: Go to:
import unittest
import sys
import os

# Add parent directory to path to import bot_logic
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

from bot_logic import process_message

class TestBotLogic(unittest.TestCase):
    
    def setUp(self):
        pass

    def test_greeting(self):
        response = process_message("Hello", "12345")
        self.assertIn("Welcome", response)

    def test_services_command(self):
        response = process_message("1", "12345")
        self.assertIn("Our Services", response)

    def test_sentiment_neg(self):
        response = process_message("I hate this huge error help me", "12345")
        self.assertIn("tough time", response)

if __name__ == '__main__':
    unittest.main()
29 lines•780 B
python
🚀 Support RSK World

Subscribe to our YouTube channel for latest tutorials & updates!



Click subscribe & support our work ❤️

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer