<s> """<STR_LIT>""" <EOL> import unittest <EOL> from datetime import datetime , timedelta <EOL> import time <EOL> import thespian . test . helpers <EOL> from thespian . actors import * <EOL> from thespian . test import ActorSystemTestCase <EOL> from thespian . system . utilis import thesplog <EOL> class CapabilityCheck ( Actor ) : <EOL> @ staticmethod <EOL> def actorSystemCapabilityCheck ( capabilities , requirements ) : <EOL> import sys <EOL> thesplog ( '<STR_LIT>' , capabilities ) <EOL> assert capabilities [ '<STR_LIT>' ] == sys . version_info <EOL> assert capabilities [ '<STR_LIT>' ] == ThespianGeneration <EOL> assert '<STR_LIT>' in capabilities <EOL> assert '<STR_LIT>' in capabilities <EOL> assert '<STR_LIT>' in capabilities <EOL> return capabilities [ '<STR_LIT>' ] == sys . version_info and capabilities [ '<STR_LIT>' ] == ThespianGeneration and '<STR_LIT>' in capabilities and '<STR_LIT>' in capabilities and '<STR_LIT>' in capabilities <EOL> def receiveMessage ( self , msg , sender ) : <EOL> pass <EOL> class TestASimpleSystem ( ActorSystemTestCase ) : <EOL> testbase = '<STR_LIT>' <EOL> scope = '<STR_LIT>' <EOL> def test_valid_capabilities ( self ) : <EOL> aS = ActorSystem ( ) <EOL> checkActor = aS . createActor ( CapabilityCheck ) <EOL> aS . tell ( checkActor , '<STR_LIT:hello>' ) <EOL> self . assertTrue ( True ) <EOL> class TestMultiprocUDPSystem ( TestASimpleSystem ) : <EOL> testbase = '<STR_LIT>' <EOL> def setUp ( self ) : <EOL> self . setSystemBase ( '<STR_LIT>' ) <EOL> super ( TestMultiprocUDPSystem , self ) . setUp ( ) <EOL> class TestMultiprocTCPSystem ( TestASimpleSystem ) : <EOL> testbase = '<STR_LIT>' <EOL> def setUp ( self ) : <EOL> self . setSystemBase ( '<STR_LIT>' ) <EOL> super ( TestMultiprocTCPSystem , self ) . setUp ( ) <EOL> class TestMultiprocQueueSystem ( TestASimpleSystem ) : <EOL> testbase = '<STR_LIT>' <EOL> def setUp ( self ) : <EOL> self . setSystemBase ( '<STR_LIT>' ) <EOL> super ( TestMultiprocQueueSystem , self ) . setUp ( ) </s>
