Home
last modified time | relevance | path

Searched refs:mock_gethostname (Results 1 – 5 of 5) sorted by relevance

/dports/devel/py-os-win/os-win-5.5.0/os_win/tests/unit/utils/storage/
H A Dtest_smbutils.py149 def test_is_local_share(self, mock_gethostname, mock_get_ips, argument
167 mock_gethostname.assert_called_once_with()
169 [mock.call(mock_gethostname.return_value),
/dports/devel/py-os-win/os-win-5.5.0/os_win/tests/unit/utils/
H A Dtest_hostutils.py128 def test_get_local_ips(self, mock_get_ips, mock_gethostname): argument
132 mock_gethostname.assert_called_once_with()
133 mock_get_ips.assert_called_once_with(mock_gethostname.return_value)
/dports/security/py-asyncssh/asyncssh-2.8.1/tests/
H A Dtest_config.py326 def mock_gethostname(): function
336 with patch('socket.gethostname', mock_gethostname):
H A Dtest_connection_auth.py585 def mock_gethostname(): function
595 with patch('socket.gethostname', mock_gethostname):
/dports/security/py-certbot-nginx/certbot-nginx-1.22.0/tests/
H A Dconfigurator_test.py89 def test_get_all_names(self, mock_gethostbyaddr, mock_gethostname): argument
91 mock_gethostname.return_value = ('example.net')