Searched refs:expected_ns (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_runpy.py | 77 def assertNamespaceMatches(self, result_ns, expected_ns): argument 84 expected_ns = expected_ns.copy() 88 if k not in expected_ns: 90 if k not in expected_ns["nested"]: 95 expected_spec = expected_ns.pop("__spec__") 111 self.assertEqual(set(result_ns), set(expected_ns)) 114 expected = (k, expected_ns[k]) 125 expected_ns = expected_namespace.copy() 126 run_name = expected_ns["__name__"] 131 self.assertNamespaceMatches(result_ns, expected_ns) [all …]
|
D | test_argparse.py | 231 for args, expected_ns in tester.successes: 235 tester.assertEqual(expected_ns, result_ns) 1720 expected_ns = NS(spam=0.25) 1722 expected_ns.badger = 2 1724 expected_ns.badger = 84 1727 assert expected_ns == namespace, ('expected %s, got %s' % 1728 (expected_ns, namespace)) 1744 expected_ns = NS(badger=2) 1746 expected_ns.spam = 0.25 1748 expected_ns.spam = 0.625 [all …]
|
D | test_types.py | 916 expected_ns = {} 922 return expected_ns 930 self.assertIs(ns, expected_ns)
|
/external/python/cpython2/Lib/test/ |
D | test_argparse.py | 245 for args, expected_ns in tester.successes: 249 tester.assertEqual(expected_ns, result_ns) 1668 expected_ns = NS(spam=0.25) 1670 expected_ns.badger = 2 1672 expected_ns.badger = 84 1675 assert expected_ns == namespace, ('expected %s, got %s' % 1676 (expected_ns, namespace)) 1692 expected_ns = NS(badger=2) 1694 expected_ns.spam = 0.25 1696 expected_ns.spam = 0.625 [all …]
|