you-get/tests/test_util.py
2013-10-30 00:19:08 +01:00

12 lines
326 B
Python

#!/usr/bin/env python
import unittest
from you_get.util import *
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")