Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(48)  |  Call(22)  |  Derive(0)  |  Import(26)

src/b/3/b3-1.9.2/b3/fake.py   b3(Download)
 
from b3.cvar import Cvar
from b3.plugins.admin import AdminPlugin
from b3.storage.database import DatabaseStorage
from sys import stdout
 
print "creating fakeAdminPlugin with @b3/conf/plugin_admin.xml"
fakeAdminPlugin = AdminPlugin(fakeConsole, '@b3/conf/plugin_admin.xml')
fakeAdminPlugin.onStartup()
 

src/b/i/big-brother-bot-HEAD/b3/fake.py   big-brother-bot(Download)
 
from b3.cvar import Cvar
from b3.plugins.admin import AdminPlugin
from b3.storage.database import DatabaseStorage
from sys import stdout
 
print "creating fakeAdminPlugin with @b3/conf/plugin_admin.xml"
fakeAdminPlugin = AdminPlugin(fakeConsole, '@b3/conf/plugin_admin.xml')
fakeAdminPlugin.onStartup()
 

src/b/3/b3-1.9.2/tests/plugins/test_admin.py   b3(Download)
from b3 import __file__ as b3_module__file__
from b3.plugin import Plugin
from b3.plugins.admin import AdminPlugin, Command
from b3.config import XmlConfigParser
from b3.clients import Client, Group, ClientVar, Penalty, ClientBan, ClientTempBan
    def setUp(self):
        B3TestCase.setUp(self)
        self.conf = XmlConfigParser()
        self.p = AdminPlugin(self.console, self.conf)
 

src/b/i/big-brother-bot-HEAD/tests/plugins/test_admin.py   big-brother-bot(Download)
from b3 import __file__ as b3_module__file__
from b3.plugin import Plugin
from b3.plugins.admin import AdminPlugin, Command
from b3.config import XmlConfigParser
from b3.clients import Client, Group, ClientVar, Penalty, ClientBan, ClientTempBan
    def setUp(self):
        B3TestCase.setUp(self)
        self.conf = XmlConfigParser()
        self.p = AdminPlugin(self.console, self.conf)
 

src/b/3/b3-1.9.2/tests/plugins/test_admin_functional.py   b3(Download)
from b3.fake import FakeClient
from b3.config import XmlConfigParser
from b3.plugins.admin import AdminPlugin
 
ADMIN_CONFIG_FILE = os.path.join(os.path.dirname(b3_module__file__), "conf/plugin_admin.xml")
    def setUp(self):
        B3TestCase.setUp(self)
        self.conf = XmlConfigParser()
        self.p = AdminPlugin(self.console, self.conf)
 

src/b/i/big-brother-bot-HEAD/tests/plugins/test_admin_functional.py   big-brother-bot(Download)
from b3.fake import FakeClient
from b3.config import XmlConfigParser
from b3.plugins.admin import AdminPlugin
 
ADMIN_CONFIG_FILE = os.path.join(os.path.dirname(b3_module__file__), "conf/plugin_admin.xml")
    def setUp(self):
        B3TestCase.setUp(self)
        self.conf = XmlConfigParser()
        self.p = AdminPlugin(self.console, self.conf)
 

src/b/3/b3-1.9.2/tests/plugins/test_tk_functional.py   b3(Download)
 
import b3
from b3.plugins.admin import AdminPlugin
from b3.plugins.tk import TkPlugin
from b3.config import XmlConfigParser
        self.console.gameName = 'f00'
 
        self.adminPlugin = AdminPlugin(self.console, ADMIN_CONFIG_FILE)
        when(self.console).getPlugin("admin").thenReturn(self.adminPlugin)
        self.adminPlugin.onLoadConfig()

src/b/3/b3-1.9.2/tests/plugins/test_spamcontrol.py   b3(Download)
from b3.events import Event
from b3.fake import FakeClient
from b3.plugins.admin import AdminPlugin
from b3.plugins.spamcontrol import SpamcontrolPlugin
from tests import B3TestCase
    def setUp(self):
        SpamcontrolTestCase.setUp(self)
 
        self.adminPlugin = AdminPlugin(self.console, ADMIN_CONFIG_FILE)
        when(self.console).getPlugin("admin").thenReturn(self.adminPlugin)

src/b/3/b3-1.9.2/tests/plugins/test_login.py   b3(Download)
from mockito import when
from b3.fake import FakeClient
from b3.plugins.admin import AdminPlugin
from tests import B3TestCase
import unittest2 as unittest
        admin_conf = XmlConfigParser()
        admin_conf.load(ADMIN_CONFIG_FILE)
        self.adminPlugin = AdminPlugin(self.console, admin_conf)
        when(self.console).getPlugin("admin").thenReturn(self.adminPlugin)
        self.adminPlugin.onLoadConfig()

src/b/3/b3-1.9.2/tests/plugins/test_adv.py   b3(Download)
from b3.fake import FakeClient
from b3.lib import feedparser
from b3.plugins.admin import AdminPlugin
from tests import B3TestCase
import unittest2 as unittest
        B3TestCase.setUp(self)
 
        self.adminPlugin = AdminPlugin(self.console, ADMIN_CONFIG)
        when(self.console).getPlugin("admin").thenReturn(self.adminPlugin)
        self.adminPlugin.onLoadConfig()

  1 | 2 | 3  Next