コード例 #1
0
ファイル: test_mac_user.py プロジェクト: aneisch/salt-1
 def test_chshell_same_shell(self):
     '''
     Tests if the user's shell is the same as the argument
     '''
     with patch('salt.modules.mac_user.info',
                MagicMock(return_value=self.mock_info_ret)):
         self.assertTrue(mac_user.chshell('foo', '/bin/bash'))
コード例 #2
0
ファイル: test_mac_user.py プロジェクト: nicholasmhughes/salt
def test_chshell_same_shell(mock_info_ret):
    """
    Tests if the user's shell is the same as the argument
    """
    with patch("salt.modules.mac_user.info",
               MagicMock(return_value=mock_info_ret)):
        assert mac_user.chshell("foo", "/bin/bash")
コード例 #3
0
ファイル: mac_user_test.py プロジェクト: mjura/salt-1
 def test_chshell_same_shell(self):
     '''
     Tests if the user's shell is the same as the argument
     '''
     self.assertTrue(mac_user.chshell('foo', '/bin/bash'))
コード例 #4
0
 def test_chshell_same_shell(self):
     '''
     Tests if the user's shell is the same as the argument
     '''
     self.assertTrue(mac_user.chshell('foo', '/bin/bash'))