configurationengine/source/plugins/symbian/ConeThemePlugin/themeplugin/tests/unittest_theme_resource.py
equal
deleted
inserted
replaced
12 # Contributors: |
12 # Contributors: |
13 # |
13 # |
14 # Description: |
14 # Description: |
15 # |
15 # |
16 |
16 |
17 import unittest, os, shutil |
17 import unittest, os, sys |
18 |
18 |
19 import __init__ |
|
20 from cone.public import exceptions,plugin,api |
|
21 from cone.storage import filestorage |
|
22 from cone.confml import implml |
|
23 from themeplugin import theme_resource |
19 from themeplugin import theme_resource |
24 from cone.storage.filestorage import FileStorage |
|
25 |
20 |
26 ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) |
21 ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) |
27 |
22 |
28 class TestThemePlugin(unittest.TestCase): |
23 class TestThemePlugin(unittest.TestCase): |
29 def setUp(self): |
24 def setUp(self): |
48 path = resource.list_resource[0].get_path() |
43 path = resource.list_resource[0].get_path() |
49 self.assertEquals(path,"private\\10207114\\import\\f99553e36ea1a92f") |
44 self.assertEquals(path,"private\\10207114\\import\\f99553e36ea1a92f") |
50 else: |
45 else: |
51 self.assertFalse() |
46 self.assertFalse() |
52 |
47 |
|
48 # Only run these tests on Windows |
|
49 if sys.platform != 'win32': |
|
50 del TestThemePlugin |
53 |
51 |
54 if __name__ == '__main__': |
52 if __name__ == '__main__': |
55 unittest.main() |
53 unittest.main() |