@@ -137,30 +137,6 @@ def test_outerProduct(self):
137
137
self .assertListEqual (list (list (elem ) for elem in
138
138
phobos .utils .general .outerProduct (a , b )), result )
139
139
140
- class TestIOUtils (unittest .TestCase ):
141
-
142
- def test_xmlline (self ):
143
- tag = 'helloworld'
144
- names = ['number' , 'name' , 'stuff' ]
145
- values = [12.3 , 'bert' , ['a' , 'b' , 'c' ]]
146
- target = '<helloworld number="12.3" name="bert" stuff="[{0}, {1}, {2}]"/>\n ' .format (
147
- "'a'" , "'b'" , "'c'" )
148
-
149
- self .assertEqual (phobos .utils .io .xmlline (0 , tag , names , values ), target )
150
- self .assertEqual (phobos .utils .io .xmlline (3 , tag , names , values ), phobos .utils .io .indent
151
- * 3 + target )
152
-
153
- def test_l2str (self ):
154
- testlist = [1 , 2 , 'hello' , '-1' ]
155
- target = '1 2 hello -1'
156
- self .assertEqual (phobos .utils .io .l2str (testlist ), target )
157
- target = '2 hello -1'
158
- self .assertEqual (phobos .utils .io .l2str (testlist , start = 1 ), target )
159
- target = '2'
160
- self .assertEqual (phobos .utils .io .l2str (testlist , start = 1 , end = - 2 ), target )
161
- target = ''
162
- self .assertEqual (phobos .utils .io .l2str (testlist , start = 5 , end = - 8 ), target )
163
-
164
140
class TestNamingUtils (unittest .TestCase ):
165
141
166
142
def test_getUniqueName (self ):
@@ -216,13 +192,11 @@ def test_stripNamespaceFromName(self):
216
192
# we have to manually invoke the test runner here, as we cannot use the CLI
217
193
blenderutilstest = unittest .defaultTestLoader .loadTestsFromTestCase (TestBlenderUtils )
218
194
generalutilstest = unittest .defaultTestLoader .loadTestsFromTestCase (TestGeneralUtils )
219
- ioutilstest = unittest .defaultTestLoader .loadTestsFromTestCase (TestIOUtils )
220
195
namingutilstest = unittest .defaultTestLoader .loadTestsFromTestCase (TestNamingUtils )
221
196
222
197
results = []
223
198
results .append (unittest .TextTestRunner ().run (blenderutilstest ))
224
199
results .append (unittest .TextTestRunner ().run (generalutilstest ))
225
- results .append (unittest .TextTestRunner ().run (ioutilstest ))
226
200
results .append (unittest .TextTestRunner ().run (namingutilstest ))
227
201
228
202
for result in results :
0 commit comments