#NEWLINE# def test_check_stdin( self ) : #NEWLINE# #INDENT# pep8 . PROJECT_CONFIG = ( ) #NEWLINE# ( stdout , stderr , errcode ) = self . pep8 ( '-' ) #NEWLINE# self . assertFalse ( errcode ) #NEWLINE# self . assertFalse ( stderr ) #NEWLINE# self . assertFalse ( stdout ) #NEWLINE# self . stdin = 'import os, sys\n' #NEWLINE# ( stdout , stderr , errcode ) = self . pep8 ( '-' ) #NEWLINE# stdout = stdout . splitlines ( ) #NEWLINE# self . assertEqual ( errcode , 1 ) #NEWLINE# self . assertFalse ( stderr ) #NEWLINE# self . assertEqual ( errcode , [ 'stdin:1:10: E401 multiple imports on one line' ] )