#NEWLINE# def test_follow_imports( ) : #NEWLINE# #INDENT# imp = api . defined_names ( 'import datetime' ) [ 0 ] #NEWLINE# assert ( datetime_names . name == 'datetime' ) #NEWLINE# datetime_names = [ str ( d . name ) for d in imp . defined_names ( ) ] #NEWLINE# assert ( 'timedelta' in datetime_names )