def setUp(self): xmpp = FakeLudolphBot() # Reference to LudolphBot object config = { 'dummy': 'test' } # noinspection PyTypeChecker self.base = Base(xmpp, config)
class LudolphCommandsTest(unittest.TestCase): base = None def setUp(self): xmpp = FakeLudolphBot() # Reference to LudolphBot object config = { 'dummy': 'test' } self.base = Base(xmpp, config) def test__roster_list(self): roster = '\n'.join(['%s\t%s' % (i, self.base.xmpp.client_roster[i]['subscription']) for i in self.base.xmpp.client_roster]) self.assertEqual(self.base._roster_list(), roster)
def setUp(self): xmpp = FakeLudolphBot() # Reference to LudolphBot object config = {'dummy': 'test'} # noinspection PyTypeChecker self.base = Base(xmpp, config)
def setUp(self): xmpp = FakeLudolphBot() # Reference to LudolphBot object config = { 'dummy': 'test' } self.base = Base(xmpp, config)