Beispiel #1
0
class TestFactory(unittest.TestCase):
    def setUp(self):
        self.__ircbotfactory = IrcBotFactory()

    def tearDown(self):
        del self.__ircbotfactory

    def test_create_should_return_instance_of_ircbot(self):
        self.assertIsInstance(self.__ircbotfactory.create(), IrcBot)
Beispiel #2
0
 def setUp(self):
     self.__ircbotfactory = IrcBotFactory()