Lines Matching refs:assertTrue
43 self.assertTrue(operator.lt(1, 2))
44 self.assertTrue(operator.lt(1, 2.0))
51 self.assertTrue(operator.le(1, 1))
52 self.assertTrue(operator.le(1, 1.0))
53 self.assertTrue(operator.le(1, 2))
54 self.assertTrue(operator.le(1, 2.0))
65 self.assertTrue(operator.eq(1, 1))
66 self.assertTrue(operator.eq(1, 1.0))
76 self.assertTrue(operator.ne(1, 0))
77 self.assertTrue(operator.ne(1, 0.0))
80 self.assertTrue(operator.ne(1, 2))
81 self.assertTrue(operator.ne(1, 2.0))
86 self.assertTrue(operator.ge(1, 0))
87 self.assertTrue(operator.ge(1, 0.0))
88 self.assertTrue(operator.ge(1, 1))
89 self.assertTrue(operator.ge(1, 1.0))
96 self.assertTrue(operator.gt(1, 0))
97 self.assertTrue(operator.gt(1, 0.0))
106 self.assertTrue(operator.abs(-1) == 1)
107 self.assertTrue(operator.abs(1) == 1)
112 self.assertTrue(operator.add(3, 4) == 7)
117 self.assertTrue(operator.and_(0xf, 0xa) == 0xa)
122 self.assertTrue(operator.concat('py', 'thon') == 'python')
123 self.assertTrue(operator.concat([1, 2], [3, 4]) == [1, 2, 3, 4])
124 self.assertTrue(operator.concat(Seq1([5, 6]), Seq1([7])) == [5, 6, 7])
125 self.assertTrue(operator.concat(Seq2([5, 6]), Seq2([7])) == [5, 6, 7])
131 self.assertTrue(operator.countOf([1, 2, 1, 3, 1, 4], 3) == 1)
132 self.assertTrue(operator.countOf([1, 2, 1, 3, 1, 4], 5) == 0)
138 self.assertTrue(operator.delitem(a, 1) is None)
139 self.assertTrue(a == [4, 2, 1])
145 self.assertTrue(operator.delslice(a, 2, 8) is None)
146 self.assertTrue(a == [0, 1, 8, 9])
148 self.assertTrue(a == [])
153 self.assertTrue(operator.floordiv(5, 2) == 2)
158 self.assertTrue(operator.floordiv(5, 2) == 2)
163 self.assertTrue(operator.truediv(5, 2) == 2.5)
169 self.assertTrue(operator.getitem(a, 2) == 2)
175 self.assertTrue(operator.getslice(a, 4, 6) == [4, 5])
177 self.assertTrue(b == a)
182 self.assertTrue(operator.indexOf([4, 3, 2, 1], 3) == 1)
188 self.assertTrue(operator.inv(4) == -5)
207 self.assertTrue(operator.isMappingType(operator.__dict__))
208 self.assertTrue(operator.isMappingType({}))
212 self.assertTrue(operator.isNumberType(8))
213 self.assertTrue(operator.isNumberType(8j))
214 self.assertTrue(operator.isNumberType(8L))
215 self.assertTrue(operator.isNumberType(8.3))
220 self.assertTrue(operator.isSequenceType(dir()))
221 self.assertTrue(operator.isSequenceType(()))
222 self.assertTrue(operator.isSequenceType(xrange(10)))
223 self.assertTrue(operator.isSequenceType('yeahbuddy'))
231 self.assertTrue(operator.lshift(5, 1) == 10)
232 self.assertTrue(operator.lshift(5, 0) == 5)
238 self.assertTrue(operator.mod(5, 2) == 1)
243 self.assertTrue(operator.mul(5, 2) == 10)
248 self.assertTrue(operator.neg(5) == -5)
249 self.assertTrue(operator.neg(-5) == 5)
250 self.assertTrue(operator.neg(0) == 0)
251 self.assertTrue(operator.neg(-0) == 0)
256 self.assertTrue(operator.or_(0xa, 0x5) == 0xf)
261 self.assertTrue(operator.pos(5) == 5)
262 self.assertTrue(operator.pos(-5) == -5)
263 self.assertTrue(operator.pos(0) == 0)
264 self.assertTrue(operator.pos(-0) == 0)
269 self.assertTrue(operator.pow(3,5) == 3**5)
270 self.assertTrue(operator.__pow__(3,5) == 3**5)
278 self.assertTrue(operator.repeat(a, 2) == a+a)
279 self.assertTrue(operator.repeat(a, 1) == a)
280 self.assertTrue(operator.repeat(a, 0) == [])
282 self.assertTrue(operator.repeat(a, 2) == a+a)
283 self.assertTrue(operator.repeat(a, 1) == a)
284 self.assertTrue(operator.repeat(a, 0) == ())
286 self.assertTrue(operator.repeat(a, 2) == a+a)
287 self.assertTrue(operator.repeat(a, 1) == a)
288 self.assertTrue(operator.repeat(a, 0) == '')
290 self.assertTrue(operator.repeat(a, 2) == [4, 5, 6, 4, 5, 6])
291 self.assertTrue(operator.repeat(a, 1) == [4, 5, 6])
292 self.assertTrue(operator.repeat(a, 0) == [])
294 self.assertTrue(operator.repeat(a, 2) == [4, 5, 6, 4, 5, 6])
295 self.assertTrue(operator.repeat(a, 1) == [4, 5, 6])
296 self.assertTrue(operator.repeat(a, 0) == [])
302 self.assertTrue(operator.rshift(5, 1) == 2)
303 self.assertTrue(operator.rshift(5, 0) == 5)
309 self.assertTrue(operator.contains(range(4), 2))
312 self.assertTrue(operator.sequenceIncludes(range(4), 2))
319 self.assertTrue(operator.setitem(a, 0, 2) is None)
320 self.assertTrue(a == [2, 1, 2])
327 self.assertTrue(operator.setslice(a, 1, 3, [2, 1]) is None)
328 self.assertTrue(a == [0, 2, 1, 3])
330 self.assertTrue(a == [])
335 self.assertTrue(operator.sub(5, 2) == 3)
343 self.assertTrue(operator.truth(5))
344 self.assertTrue(operator.truth([0]))
351 self.assertTrue(operator.xor(0xb, 0xc) == 0x7)
357 self.assertTrue(operator.is_(a, b))
365 self.assertTrue(operator.is_not(a,c))