summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-11-29 20:35:23 +0100
committerhut <hut@lavabit.com>2009-11-29 20:35:23 +0100
commit5805deca6306eb888ebdad64c14119995521c6b8 (patch)
tree8041ac52247c99857e0d21dc4c4332cb97556f0e /test
parentf027adc08ce0d15717c7694956f23ff637553543 (diff)
downloadranger-5805deca6306eb888ebdad64c14119995521c6b8.tar.gz
random improvements
Diffstat (limited to 'test')
-rw-r--r--test/tc_directory.py35
1 files changed, 18 insertions, 17 deletions
diff --git a/test/tc_directory.py b/test/tc_directory.py
index 275e3129..c2129a29 100644
--- a/test/tc_directory.py
+++ b/test/tc_directory.py
@@ -66,23 +66,24 @@ class Test1(unittest.TestCase):
 		self.assertRaises(fsobject.NotLoadedYet, len, dir)
 		self.assertRaises(fsobject.NotLoadedYet, dir.__getitem__, 0)
 
-	def test_modify_frozen_clone(self):
-		dir = Directory(TESTDIR)
-		clone = dir.frozen_clone()
-
-		# assert that their attributes are equal, except for frozen, which
-		# should be true for the clone.
-		self.assertTrue(clone.frozen)
-		clone.frozen = False
-		self.assertEqual(dir.__dict__, clone.__dict__)
-		clone.frozen = True
-
-		# check for inequality after loading filenames with one object
-		self.assertEqual(dir.filenames, clone.filenames)
-		dir.load_content()
-		self.assertNotEqual(dir.filenames, clone.filenames)
-
-		self.assertRaises(fsobject.FrozenException, clone.load_content)
+	# This test is obsolete!
+#	def test_modify_frozen_clone(self):
+#		dir = Directory(TESTDIR)
+#		clone = dir.frozen_clone()
+#
+#		# assert that their attributes are equal, except for frozen, which
+#		# should be true for the clone.
+#		self.assertTrue(clone.frozen)
+#		clone.frozen = False
+#		self.assertEqual(dir.__dict__, clone.__dict__)
+#		clone.frozen = True
+#
+#		# check for inequality after loading filenames with one object
+#		self.assertEqual(dir.filenames, clone.filenames)
+#		dir.load_content()
+#		self.assertNotEqual(dir.filenames, clone.filenames)
+#
+#		self.assertRaises(fsobject.FrozenException, clone.load_content)
 
 	def test_load_if_outdated(self):
 		import os
md_bookmark.c?id=23842e5254f91ebecac37ceea6a28a240accae24'>^
7bac097d ^
652e99fd ^











3d7d070b ^










7bac097d ^
3d7d070b ^









































af51fa3c ^
a564b024 ^



7bac097d ^
a564b024 ^













af51fa3c ^


ebafc192 ^
7bac097d ^
af51fa3c ^





d2662a6f ^
ebafc192 ^
af51fa3c ^









ebafc192 ^
7bac097d ^
af51fa3c ^


d2662a6f ^
af51fa3c ^


d2662a6f ^

af51fa3c ^


38d8d8d9 ^







7bac097d ^
38d8d8d9 ^

d2662a6f ^
38d8d8d9 ^


d2662a6f ^

38d8d8d9 ^


af51fa3c ^






ebafc192 ^
7bac097d ^
af51fa3c ^


d2662a6f ^
af51fa3c ^

af51fa3c ^
d2662a6f ^

af51fa3c ^




af51fa3c ^
a8ecbccc ^




7bac097d ^
a8ecbccc ^





d2662a6f ^
a8ecbccc ^







9d957e5f ^



7bac097d ^
9d957e5f ^





d2662a6f ^
95c48a0f ^





a564b024 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270