Fix some bugs on windows

This commit is contained in:
Julien Duponchelle
2016-09-27 17:05:03 +02:00
parent 3a8ca1071e
commit be5d543f20
5 changed files with 14 additions and 8 deletions

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import sys
from gns3server.utils import *
@ -23,6 +23,8 @@ def test_force_unix_path():
assert force_unix_path("a/b") == "a/b"
assert force_unix_path("a\\b") == "a/b"
assert force_unix_path("a\\b\\..\\c") == "a/c"
if sys.platform.startswith("win"):
assert force_unix_path("C:\Temp") == "C:/Temp"
def test_macaddress_to_int():