def test_chhome_same_home(self): ''' Tests if the user's home is the same as the argument ''' with patch('salt.modules.mac_user.info', MagicMock(return_value=self.mock_info_ret)): self.assertTrue(mac_user.chhome('foo', '/Users/foo'))
def test_chhome_same_home(mock_info_ret): """ Tests if the user's home is the same as the argument """ with patch("salt.modules.mac_user.info", MagicMock(return_value=mock_info_ret)): assert mac_user.chhome("foo", "/Users/foo")
def test_chhome_same_home(self): ''' Tests if the user's home is the same as the argument ''' self.assertTrue(mac_user.chhome('foo', '/Users/foo'))