summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.goldberg@gmail.com>2012-12-15 11:05:38 +0200
committerYakov Goldberg <yakov.goldberg@gmail.com>2012-12-16 01:12:08 +0200
commita24d6f0b0373ece1bd0c70d1d144264402f2e8dc (patch)
tree0967a92e83da350ab71f916c8dc7310066267a8a
parent4c6ba609cd1b383d5c12aa731b7a77ce820e8989 (diff)
Tests updated
Signed-off-by: Yakov Goldberg <yakov.goldberg@gmail.com>
-rw-r--r--tests/tests.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/tests.py b/tests/tests.py
index d924a27..35e0f66 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -19,7 +19,8 @@ class testP(unittest.TestCase):
19 "test_class_name", 19 "test_class_name",
20 "EO_CLASS_TYPE_REGULAR", 20 "EO_CLASS_TYPE_REGULAR",
21 ["ELM_OBJ_PAN_BASE_ID", 21 ["ELM_OBJ_PAN_BASE_ID",
22 [("ELM_OBJ_PAN_SUB_ID_POS_SET", "pos_set"), ("ELM_OBJ_PAN_SUB_ID_POS_GET", "pos_get")], 22 [("ELM_OBJ_PAN_SUB_ID_POS_SET", "pos_set"),
23 ("ELM_OBJ_PAN_SUB_ID_POS_GET", "pos_get")],
23 "ELM_OBJ_PAN_SUB_ID_LAST"], 24 "ELM_OBJ_PAN_SUB_ID_LAST"],
24 ["EO_EV_CALLBACK_ADD", "EO_EV_CALLBACK_DEL", "EO_EV_DEL"] 25 ["EO_EV_CALLBACK_ADD", "EO_EV_CALLBACK_DEL", "EO_EV_DEL"]
25 ]} 26 ]}
@@ -34,18 +35,22 @@ class testP(unittest.TestCase):
34 self.assertTrue(isC("abc.cpp")) 35 self.assertTrue(isC("abc.cpp"))
35 self.assertFalse(isC("abc.cp")) 36 self.assertFalse(isC("abc.cp"))
36 self.assertFalse(isC("abc.def.c")) 37 self.assertFalse(isC("abc.def.c"))
38 self.assertTrue(isC("/abc/def/file.c"))
39 self.assertTrue(isC("/abc/def2.7/file.c"))
37 40
38 def test_isH(self): 41 def test_isH(self):
39 self.assertTrue(isH("abc.h")) 42 self.assertTrue(isH("abc.h"))
40 self.assertFalse(isH("abc.c")) 43 self.assertFalse(isH("abc.c"))
41 self.assertFalse(isH("abc.def.h")) 44 self.assertFalse(isH("abc.def.h"))
45 self.assertTrue(isH("/abc/def/file.h"))
46 self.assertTrue(isH("/abc/def2.7/file.h"))
42 47
43 def test_isXML(self): 48 def test_isXML(self):
44 self.assertTrue(isXML("abc.xml")) 49 self.assertTrue(isXML("abc.xml"))
45 self.assertTrue(isXML("/abc/def/abc.xml"))
46 self.assertTrue(isXML("/abc/py2.7/abc.xml"))
47 self.assertFalse(isXML("abc.h")) 50 self.assertFalse(isXML("abc.h"))
48 self.assertFalse(isXML("abc.qwe.xml")) 51 self.assertFalse(isXML("abc.qwe.xml"))
52 self.assertTrue(isXML("/abc/def/abc.xml"))
53 self.assertTrue(isXML("/abc/py2.7/abc.xml"))
49 54
50 def test_abs_path_get(self): 55 def test_abs_path_get(self):
51 _in = "test_data.in" 56 _in = "test_data.in"