diff options
author | Ahmad Sharif <asharif@chromium.org> | 2012-05-07 12:02:16 -0700 |
---|---|---|
committer | Ahmad Sharif <asharif@chromium.org> | 2012-05-07 12:02:16 -0700 |
commit | fd356fb31c4340851fecc750230d05c9518b125c (patch) | |
tree | 694f1a93f568d5e46655c30bb76cb71d7400f11b /utils/misc_test.py | |
parent | 92ab7af223c82fe8897bacea8b32028828eab018 (diff) | |
download | toolchain-utils-fd356fb31c4340851fecc750230d05c9518b125c.tar.gz |
Synced repos to: 60208
Diffstat (limited to 'utils/misc_test.py')
-rw-r--r-- | utils/misc_test.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/utils/misc_test.py b/utils/misc_test.py new file mode 100644 index 00000000..62742e3b --- /dev/null +++ b/utils/misc_test.py @@ -0,0 +1,22 @@ +# Copyright 2012 Google Inc. All Rights Reserved. + +"""Tests for misc.""" + +__author__ = 'asharif@google.com (Ahmad Sharif)' + +# System modules +import re +import unittest + +# Local modules +import misc + + +class UtilsTest(unittest.TestCase): + def testGetFilenameFromString(self): + string = 'a /b=c"d' + filename = misc.GetFilenameFromString(string) + self.assertTrue(filename == 'a___bcd') + +if __name__ == '__main__': + unittest.main() |