<s> import unittest <EOL> import logging <EOL> from . common import UniqueResource , NormalTest , NormalTestTwo <EOL> log = logging . getLogger ( __name__ ) <EOL> class Layer1 ( object ) : <EOL> @ classmethod <EOL> def setUp ( cls ) : <EOL> log . info ( "<STR_LIT>" ) <EOL> cls . unique_resource = UniqueResource ( ) <EOL> cls . unique_resource . lock ( ) <EOL> @ classmethod <EOL> def tearDown ( cls ) : <EOL> log . info ( "<STR_LIT>" ) <EOL> cls . unique_resource . unlock ( ) <EOL> class Layer2 ( object ) : <EOL> @ classmethod <EOL> def setUp ( cls ) : <EOL> log . info ( "<STR_LIT>" ) <EOL> cls . unique_resource = UniqueResource ( ) <EOL> cls . unique_resource . lock ( ) <EOL> @ classmethod <EOL> def tearDown ( cls ) : <EOL> log . info ( "<STR_LIT>" ) <EOL> cls . unique_resource . unlock ( ) <EOL> class Layer3 ( Layer2 ) : <EOL> @ classmethod <EOL> def setUp ( cls ) : <EOL> log . info ( "<STR_LIT>" ) <EOL> @ classmethod <EOL> def tearDown ( cls ) : <EOL> log . info ( "<STR_LIT>" ) <EOL> class LayerTest1 ( unittest . TestCase ) : <EOL> layer = Layer1 <EOL> def test ( self ) : <EOL> self . assertTrue ( self . layer . unique_resource . used ) <EOL> class LayerTest2 ( unittest . TestCase ) : <EOL> layer = Layer2 <EOL> def test ( self ) : <EOL> self . assertTrue ( self . layer . unique_resource . used ) <EOL> class LayerTest3 ( unittest . TestCase ) : <EOL> layer = Layer2 <EOL> def test ( self ) : <EOL> self . assertTrue ( self . layer . unique_resource . used ) </s>
