Commit 7e9e6603 authored by Łukasz Nowak's avatar Łukasz Nowak

Import only once.

parent 3ce2f2ad
...@@ -6,6 +6,7 @@ import slapos.slap.slap ...@@ -6,6 +6,7 @@ import slapos.slap.slap
import socket import socket
import tempfile import tempfile
import unittest import unittest
import urlparse
import xml_marshaller import xml_marshaller
import httplib import httplib
import logging import logging
...@@ -89,8 +90,6 @@ class TestSlapgridCPWithMaster(MasterMixin, unittest.TestCase): ...@@ -89,8 +90,6 @@ class TestSlapgridCPWithMaster(MasterMixin, unittest.TestCase):
def test_nothing_to_do(self): def test_nothing_to_do(self):
def server_response(self, path, method, body, header): def server_response(self, path, method, body, header):
import urlparse
parsed_url = urlparse.urlparse(path.lstrip('/')) parsed_url = urlparse.urlparse(path.lstrip('/'))
parsed_qs = urlparse.parse_qs(parsed_url.query) parsed_qs = urlparse.parse_qs(parsed_url.query)
if parsed_url.path == 'getComputerInformation' and \ if parsed_url.path == 'getComputerInformation' and \
...@@ -112,8 +111,6 @@ class TestSlapgridCPWithMaster(MasterMixin, unittest.TestCase): ...@@ -112,8 +111,6 @@ class TestSlapgridCPWithMaster(MasterMixin, unittest.TestCase):
def test_one_partition(self): def test_one_partition(self):
def server_response(self, path, method, body, header): def server_response(self, path, method, body, header):
import urlparse
parsed_url = urlparse.urlparse('/' + path) parsed_url = urlparse.urlparse('/' + path)
parsed_qs = urlparse.parse_qs(parsed_url.query) parsed_qs = urlparse.parse_qs(parsed_url.query)
if parsed_url.path == '/getComputerInformation' and \ if parsed_url.path == '/getComputerInformation' and \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment