Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/b/o/botnet-HEAD/main.py   botnet(Download)
@author: victorhg
'''
from botnet import BotnetJabberClient
 
 
bot = BotnetJabberClient()

src/b/o/botnet-HEAD/botnet/test/test_bot.py   botnet(Download)
'''
import unittest
from botnet import BotnetJabberClient
 
 
    def test_format_weather_result(self):
        result = {'current_condition': 'Light Rain Shower', 'current_temp': '5', 'title': 'Yahoo! Weather - Dublin, IE', 'forecasts': [{'date': '1 Apr 2010', 'high': '9', 'low': '3', 'condition': 'Light Rain Late'}, {'date': '2 Apr 2010', 'high': '9', 'low': '2', 'condition': 'Rain'}]}
        bot = BotnetJabberClient()
        expected = 'Yahoo! Weather - Dublin, IE\n 5 C - Light Rain Shower \n Forecasts\n1 Apr 2010 -> Light Rain Late with max 9 C | min 3 C\n2 Apr 2010 -> Rain with max 9 C | min 2 C\n'
        formated_result = bot.format_weather_result(result)
        print formated_result
        self.assertEquals(expected, formated_result)
 
    def test_invalid_search(self):
        bot = BotnetJabberClient()