def test_remove_socket(self): import tempfile, os tmp_file = tempfile.NamedTemporaryFile(delete=False) file_name = tmp_file.name tmp_file.close() utils.remove_unix_socket(file_name) self.assertFalse(os.path.exists(file_name))
def tearDown(self): utils.remove_unix_socket(self.sock_path)