<s> import Gaffer <EOL> import GafferUI <EOL> import GafferUITest <EOL> class PlaybackTest ( GafferUITest . TestCase ) : <EOL> def testAcquire ( self ) : <EOL> c1 = Gaffer . Context ( ) <EOL> c2 = Gaffer . Context ( ) <EOL> p1a = GafferUI . Playback . acquire ( c1 ) <EOL> p1b = GafferUI . Playback . acquire ( c1 ) <EOL> self . assertTrue ( p1a is p1b ) <EOL> p2a = GafferUI . Playback . acquire ( c2 ) <EOL> p2b = GafferUI . Playback . acquire ( c2 ) <EOL> self . assertTrue ( p2a is p2b ) <EOL> self . assertTrue ( p2a is not p1a ) <EOL> s = Gaffer . ScriptNode ( ) <EOL> p3a = GafferUI . Playback . acquire ( s . context ( ) ) <EOL> p3b = GafferUI . Playback . acquire ( s . context ( ) ) <EOL> self . assertTrue ( p3a is p3b ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
