Home
last modified time | relevance | path

Searched refs:ALWAYS_EQ (Results 1 – 19 of 19) sorted by relevance

/third_party/python/Lib/test/
Dseq_tests.py9 from test.support import ALWAYS_EQ, NEVER_EQ
228 self.assertNotIn(ALWAYS_EQ, self.type2test([]))
229 self.assertIn(ALWAYS_EQ, self.type2test([1]))
230 self.assertIn(1, self.type2test([ALWAYS_EQ]))
232 self.assertNotIn(ALWAYS_EQ, self.type2test([NEVER_EQ]))
233 self.assertIn(NEVER_EQ, self.type2test([ALWAYS_EQ]))
354 self.assertEqual(a.count(ALWAYS_EQ), 9)
355 self.assertEqual(self.type2test([ALWAYS_EQ, ALWAYS_EQ]).count(1), 2)
356 self.assertEqual(self.type2test([ALWAYS_EQ, ALWAYS_EQ]).count(NEVER_EQ), 2)
357 self.assertEqual(self.type2test([NEVER_EQ, NEVER_EQ]).count(ALWAYS_EQ), 0)
[all …]
Dtest_compare.py2 from test.support import ALWAYS_EQ
110 self.assertEqual(x, ALWAYS_EQ)
111 self.assertEqual(ALWAYS_EQ, x)
113 self.assertEqual(y, ALWAYS_EQ)
114 self.assertEqual(ALWAYS_EQ, y)
Dlist_tests.py10 from test.support import ALWAYS_EQ, NEVER_EQ
322 a.remove(ALWAYS_EQ)
324 a = self.type2test([ALWAYS_EQ])
327 a = self.type2test([ALWAYS_EQ])
331 self.assertRaises(ValueError, a.remove, ALWAYS_EQ)
Dtest_iter.py7 from test.support import check_free_after_iterating, ALWAYS_EQ, NEVER_EQ
657 self.assertIn(ALWAYS_EQ, IteratorProxyClass(iter([1])))
658 self.assertIn(ALWAYS_EQ, SequenceProxyClass([1]))
659 self.assertNotIn(ALWAYS_EQ, IteratorProxyClass(iter([NEVER_EQ])))
660 self.assertNotIn(ALWAYS_EQ, SequenceProxyClass([NEVER_EQ]))
661 self.assertIn(NEVER_EQ, IteratorProxyClass(iter([ALWAYS_EQ])))
662 self.assertIn(NEVER_EQ, SequenceProxyClass([ALWAYS_EQ]))
Dtest_range.py7 from test.support import ALWAYS_EQ
306 self.assertEqual(range(10).index(ALWAYS_EQ), 0)
357 self.assertEqual(range(10).count(ALWAYS_EQ), 10)
459 self.assertIn(ALWAYS_EQ, range(3))
Dtest_traceback.py11 from test.support import Error, captured_output, cpython_only, ALWAYS_EQ
1040 self.assertEqual(f, ALWAYS_EQ)
1328 self.assertEqual(exc, ALWAYS_EQ)
Dtest_weakref.py14 from test.support import script_helper, ALWAYS_EQ
885 self.assertTrue(a == ALWAYS_EQ)
886 self.assertFalse(a != ALWAYS_EQ)
1198 _eq(a, ALWAYS_EQ)
Dtest_xmlrpc.py21 from test.support import ALWAYS_EQ, LARGEST, SMALLEST
560 self.assertTrue(dtime == ALWAYS_EQ)
561 self.assertFalse(dtime != ALWAYS_EQ)
Dtest_inspect.py28 from test.support import MISSING_C_DOCSTRINGS, ALWAYS_EQ
3210 self.assertTrue(inspect.signature(foo) == ALWAYS_EQ)
3211 self.assertFalse(inspect.signature(foo) != ALWAYS_EQ)
3651 self.assertTrue(p == ALWAYS_EQ)
3652 self.assertFalse(p != ALWAYS_EQ)
3999 self.assertTrue(ba == ALWAYS_EQ)
4000 self.assertFalse(ba != ALWAYS_EQ)
Dtest_enum.py11 from test.support import ALWAYS_EQ, check__all__, threading_helper
1641 self.assertEqual(ALWAYS_EQ, OrdinaryEnum.a)
1642 self.assertEqual(OrdinaryEnum.a, ALWAYS_EQ)
Ddatetimetester.py23 from test.support import is_resource_enabled, ALWAYS_EQ, LARGEST, SMALLEST
350 self.assertTrue(tz == ALWAYS_EQ)
351 self.assertFalse(tz != ALWAYS_EQ)
454 self.assertTrue(me == ALWAYS_EQ)
455 self.assertFalse(me != ALWAYS_EQ)
Dtest_urllib2.py645 (req, support.ALWAYS_EQ, 302, "", {}))]
/third_party/python/Lib/tkinter/test/test_tkinter/
Dtest_font.py4 from test.support import requires, gc_collect, ALWAYS_EQ
74 self.assertEqual(font1, ALWAYS_EQ)
Dtest_variables.py8 from test.support import ALWAYS_EQ
84 self.assertEqual(v1, ALWAYS_EQ)
/third_party/python/Lib/test/test_email/
Dtest_headerregistry.py10 from test.support import ALWAYS_EQ
1590 self.assertTrue(a == ALWAYS_EQ)
1599 self.assertTrue(g == ALWAYS_EQ)
/third_party/python/Lib/unittest/test/testmock/
Dtestmock.py6 from test.support import ALWAYS_EQ
354 self.assertTrue(mm == ALWAYS_EQ)
355 self.assertFalse(mm != ALWAYS_EQ)
364 self.assertTrue(call1 == ALWAYS_EQ)
365 self.assertFalse(call1 != ALWAYS_EQ)
/third_party/python/Lib/test/test_asyncio/
Dtest_events.py37 from test.support import ALWAYS_EQ, LARGEST, SMALLEST
2436 self.assertTrue(h1 == ALWAYS_EQ)
2437 self.assertFalse(h1 != ALWAYS_EQ)
/third_party/python/Lib/test/support/
D__init__.py1807 ALWAYS_EQ = _ALWAYS_EQ() variable
/third_party/python/Doc/library/
Dtest.rst376 .. data:: ALWAYS_EQ
383 Object that is not equal to anything (even to :data:`ALWAYS_EQ`).