Home | History | Annotate | Download | only in test

Lines Matching full:assertequal

61         self.assertEqual(res, seq)
68 self.assertEqual(res, seq)
93 self.assertEqual(res, TRIPLETS)
100 self.assertEqual(res, TRIPLETS)
106 self.assertEqual(res, TRIPLETS)
175 self.assertEqual(res, range(10))
191 self.assertEqual(res, range(10))
259 self.assertEqual(list(SequenceClass(5)), range(5))
260 self.assertEqual(list(SequenceClass(0)), [])
261 self.assertEqual(list(()), [])
262 self.assertEqual(list(range(10, -1, -1)), range(10, -1, -1))
265 self.assertEqual(list(d), d.keys())
278 self.assertEqual(list(f), ["0\n", "1\n", "2\n", "3\n", "4\n"])
280 self.assertEqual(list(f),
291 self.assertEqual(tuple(SequenceClass(5)), (0, 1, 2, 3, 4))
292 self.assertEqual(tuple(SequenceClass(0)), ())
293 self.assertEqual(tuple([]), ())
294 self.assertEqual(tuple(()), ())
295 self.assertEqual(tuple("abc"), ("a", "b", "c"))
298 self.assertEqual(tuple(d), tuple(d.keys()))
311 self.assertEqual(tuple(f), ("0\n", "1\n", "2\n", "3\n", "4\n"))
313 self.assertEqual(tuple(f),
324 self.assertEqual(filter(None, SequenceClass(5)), range(1, 5))
325 self.assertEqual(filter(None, SequenceClass(0)), [])
326 self.assertEqual(filter(None, ()), ())
327 self.assertEqual(filter(None, "abc"), "abc")
330 self.assertEqual(filter(None, d), d.keys())
363 self.assertEqual(filter(lambda x: not x, seq), [bFalse]*25)
364 self.assertEqual(filter(lambda x: not x, iter(seq)), [bFalse]*25)
368 self.assertEqual(max(SequenceClass(5)), 4)
369 self.assertEqual(min(SequenceClass(5)), 0)
370 self.assertEqual(max(8, -1), 8)
371 self.assertEqual(min(8, -1), -1)
374 self.assertEqual(max(d), "two")
375 self.assertEqual(min(d), "one")
376 self.assertEqual(max(d.itervalues()), 3)
377 self.assertEqual(min(iter(d.itervalues())), 1)
388 self.assertEqual(min(f), "itty-bitty line\n")
390 self.assertEqual(max(f), "xtra large line\n")
400 self.assertEqual(map(lambda x: x+1, SequenceClass(5)), range(1, 6))
403 self.assertEqual(map(lambda k, d=d: (k, d[k]), d), d.items())
412 self.assertEqual(map(None, SequenceClass(5)), range(5))
413 self.assertEqual(map(None, d), d.keys())
414 self.assertEqual(map(None, d,
427 self.assertEqual(map(len, f), range(1, 21, 2))
437 self.assertEqual(zip(), [])
438 self.assertEqual(zip(*[]), [])
439 self.assertEqual(zip(*[(1, 2), 'ab']), [(1, 'a'), (2, 'b')])
445 self.assertEqual(zip(IteratingSequenceClass(3)),
447 self.assertEqual(zip(SequenceClass(3)),
451 self.assertEqual(d.items(), zip(d, d.itervalues()))
473 self.assertEqual(zip(IntsFrom(0), f, IntsFrom(-100)),
484 self.assertEqual(zip(xrange(5)), [(i,) for i in range(5)])
501 self.assertEqual(len(Guess3Len5()), 3)
502 self.assertEqual(len(Guess30Len5()), 30)
503 self.assertEqual(zip(NoGuessLen5()), zip(range(5)))
504 self.assertEqual(zip(Guess3Len5()), zip(range(5)))
505 self.assertEqual(zip(Guess30Len5()), zip(range(5)))
510 self.assertEqual(zip(x, y), expected)
519 self.assertEqual(reduce(add, SequenceClass(5)), 10)
520 self.assertEqual(reduce(add, SequenceClass(5), 42), 52)
522 self.assertEqual(reduce(add, SequenceClass(0), 42), 42)
523 self.assertEqual(reduce(add, SequenceClass(1)), 0)
524 self.assertEqual(reduce(add, SequenceClass(1), 42), 42)
527 self.assertEqual(reduce(add, d), "".join(d.keys()))
563 self.assertEqual(got, unicode("a\n - b\n - fooled you! - c\n"))
617 self.assertEqual(countOf([1,2,2,3,2,5], 2), 3)
618 self.assertEqual(countOf((1,2,2,3,2,5), 2), 3)
619 self.assertEqual(countOf("122325", "2"), 3)
620 self.assertEqual(countOf("122325", "6"), 0)
627 self.assertEqual(countOf(d, k), 1)
628 self.assertEqual(countOf(d.itervalues(), 3), 3)
629 self.assertEqual(countOf(d.itervalues(), 2j), 1)
630 self.assertEqual(countOf(d.itervalues(), 1j), 0)
641 self.assertEqual(countOf(f, letter + "\n"), count)
652 self.assertEqual(indexOf([1,2,2,3,2,5], 1), 0)
653 self.assertEqual(indexOf((1,2,2,3,2,5), 2), 1)
654 self.assertEqual(indexOf((1,2,2,3,2,5), 3), 3)
655 self.assertEqual(indexOf((1,2,2,3,2,5), 5), 5)
659 self.assertEqual(indexOf("122325", "2"), 1)
660 self.assertEqual(indexOf("122325", "5"), 5)
674 self.assertEqual(indexOf(fiter, "b\n"), 1)
675 self.assertEqual(indexOf(fiter, "d\n"), 1)
676 self.assertEqual(indexOf(fiter, "e\n"), 0)
687 self.assertEqual(indexOf(iclass, i), i)
733 self.assertEqual(list(f), expected)
746 self.assertEqual((a, b), (1, 2))
749 self.assertEqual((a, b, c), (0, 1, 2))
773 self.assertEqual((a, b, c), (42, 42, 42))
785 self.assertEqual((a, b, c), lines)
794 self.assertEqual((a, b, c), (0, 1, 42))
809 self.assertEqual(C.count, 1)
811 self.assertEqual(C.count, 0)
813 self.assertEqual(C.count, 3)
819 self.assertEqual(C.count, 0)
830 self.assertEqual(list(b), range(5))
832 self.assertEqual(list(b), [])
837 self.assertEqual(list(b), range(5))
838 self.assertEqual(list(b), [])
843 self.assertEqual(list(b), ['a', 'b', 'c', 'd', 'e'])
844 self.assertEqual(list(b), [])
850 self.assertEqual(list(b), range(5))
852 self.assertEqual(list(b), [])
863 self.assertEqual(list(b), range(5))
864 self.assertEqual(list(b), [])
872 self.assertEqual(len(list(b)), 5)
873 self.assertEqual(list(b), [])
880 self.assertEqual(list(b), range(5))
881 self.assertEqual(list(b), [])
886 self.assertEqual(list(b), range(5))
887 self.assertEqual(list(b), [])
893 self.assertEqual(list(b), zip(range(5), range(5)))
894 self.assertEqual(list(b), [])
924 self.assertEqual(len(lst), 760)