Ejemplo n.º 1
0
 def setUp(self):
     xmpp = FakeLudolphBot()  # Reference to LudolphBot object
     config = {
         'dummy': 'test'
     }
     # noinspection PyTypeChecker
     self.base = Base(xmpp, config)
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
 def setUp(self):
     xmpp = FakeLudolphBot()  # Reference to LudolphBot object
     config = {'dummy': 'test'}
     # noinspection PyTypeChecker
     self.base = Base(xmpp, config)
Ejemplo n.º 4
0
 def setUp(self):
     xmpp = FakeLudolphBot()  # Reference to LudolphBot object
     config = {
         'dummy': 'test'
     }
     self.base = Base(xmpp, config)