<s> import unittest <EOL> from lib import create_monitor , Monitor <EOL> from flask import Flask <EOL> from flask . ext . socketio import SocketIO <EOL> class TestFactory ( unittest . TestCase ) : <EOL> def test_can_create_monitor ( self ) : <EOL> socketio = self . create_socketio ( ) <EOL> monitor = create_monitor ( "<STR_LIT>" , socketio ) <EOL> self . assertIsInstance ( monitor , Monitor ) <EOL> def create_socketio ( self ) : <EOL> app = Flask ( __name__ ) <EOL> app . config [ '<STR_LIT>' ] = True <EOL> return SocketIO ( app ) </s>
