test_util.py 387 B

123456789101112
  1. #!/usr/bin/env python
  2. import unittest
  3. from you_get.util.fs import *
  4. class TestUtil(unittest.TestCase):
  5. def test_legitimize(self):
  6. self.assertEqual(legitimize("1*2", os="linux"), "1*2")
  7. self.assertEqual(legitimize("1*2", os="mac"), "1*2")
  8. self.assertEqual(legitimize("1*2", os="windows"), "1-2")
  9. self.assertEqual(legitimize("1*2", os="wsl"), "1-2")