<s> from __future__ import absolute_import <EOL> from . . api import HasTraits , Instance , Int <EOL> from traits . testing . unittest_tools import unittest <EOL> class Bar ( HasTraits ) : <EOL> b = Int ( <NUM_LIT:3> ) <EOL> class Foo ( HasTraits ) : <EOL> bar = Instance ( Bar ) <EOL> class KeyWordArgsTest ( unittest . TestCase ) : <EOL> def test_using_kw ( self ) : <EOL> bar = Bar ( b = <NUM_LIT:5> ) <EOL> foo = Foo ( bar = bar ) <EOL> self . assertEqual ( foo . bar . b , <NUM_LIT:5> ) <EOL> def test_not_using_kw ( self ) : <EOL> foo = Foo ( ) <EOL> self . assertEqual ( foo . bar , None ) </s>
