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

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

        self.assertEqual('Unable to retrieve currently logged-in user',
                         self.stdout.getvalue().strip())
        self.assertEqual(retcode, 0)
Test 'st2 whoami' functionality with a missing username
        
Test 'st2 whoami' functionality with a missing username
Test ' st2 whoami ' functionality with a missing username
def runTest(self):
        retcode = self.shell.run(['--config', self.CONFIG_FILE, 'whoami'])
        self.assertEqual('Unable to retrieve currently logged-in user',
                         self.stdout.getvalue().strip())
        self.assertEqual(retcode, 0)
def runTest ( self ) : retcode = self . shell . run ( [ '--config' , self . CONFIG_FILE , 'whoami' ] ) self . assertEqual ( 'Unable to retrieve currently logged-in user' , self . stdout . getvalue ( ) . strip ( ) ) self . assertEqual ( retcode , 0 )
Test 'st2 whoami' functionality with a missing username
Test ' st2 whoami ' functionality with a missing username
'''Test 'st2 whoami' functionality with a missing username
        '''
self