<s> from roost import services <EOL> from nose . tools import * <EOL> from mock import Mock <EOL> from twisted . trial import unittest <EOL> class TestMain ( unittest . TestCase ) : <EOL> def test_start ( self ) : <EOL> serviceClass = services . env_sensors . EnvSensors <EOL> app = Mock ( ) <EOL> services . _services = [ serviceClass ] <EOL> services . start ( app , { '<STR_LIT>' : '<STR_LIT>' } ) <EOL> assert isinstance ( services . find ( '<STR_LIT>' ) , serviceClass ) </s>
