st2client/tests/unit/test_auth.py
def runTest(self):
        '''Test 'st2 whoami' functionality
        '''

        retcode = self.shell.run(['--config', self.CONFIG_FILE, 'whoami'])

        self.assertEqual(retcode, 0)
        self.assertTrue(self.USERNAME in self.stdout.getvalue())
Test 'st2 whoami' functionality
        
Test 'st2 whoami' functionality
Test ' st2 whoami ' functionality
def runTest(self):
        retcode = self.shell.run(['--config', self.CONFIG_FILE, 'whoami'])
        self.assertEqual(retcode, 0)
        self.assertTrue(self.USERNAME in self.stdout.getvalue())
def runTest ( self ) : retcode = self . shell . run ( [ '--config' , self . CONFIG_FILE , 'whoami' ] ) self . assertEqual ( retcode , 0 ) self . assertTrue ( self . USERNAME in self . stdout . getvalue ( ) )
Test 'st2 whoami' functionality
Test ' st2 whoami ' functionality
'''Test 'st2 whoami' functionality
        '''
self