you-get/tests/test_util.py

12 lines
329 B
Python
Raw Normal View History

2013-10-30 03:19:08 +04:00
#!/usr/bin/env python
import unittest
2014-07-21 05:17:30 +04:00
from you_get.util.fs import *
2013-10-30 03:19:08 +04:00
class TestUtil(unittest.TestCase):
def test_legitimize(self):
self.assertEqual(legitimize("1*2", os="Linux"), "1*2")
self.assertEqual(legitimize("1*2", os="Darwin"), "1*2")
self.assertEqual(legitimize("1*2", os="Windows"), "1-2")