Пример #1
0
 def test_chfullname_same_name(self):
     '''
     Tests if the user's full name is the same as the argument
     '''
     with patch('salt.modules.mac_user.info',
                MagicMock(return_value=self.mock_info_ret)):
         self.assertTrue(mac_user.chfullname('test', 'TEST USER'))
Пример #2
0
def test_chfullname_same_name(mock_info_ret):
    """
    Tests if the user's full name is the same as the argument
    """
    with patch("salt.modules.mac_user.info",
               MagicMock(return_value=mock_info_ret)):
        assert mac_user.chfullname("test", "TEST USER")
Пример #3
0
 def test_chfullname_same_name(self):
     '''
     Tests if the user's full name is the same as the argument
     '''
     self.assertTrue(mac_user.chfullname('test', 'TEST USER'))
Пример #4
0
 def test_chfullname_same_name(self):
     '''
     Tests if the user's full name is the same as the argument
     '''
     self.assertTrue(mac_user.chfullname('test', 'TEST USER'))