Lines Matching defs:test
848 # Don't test for the default, since it's set to MISSING.
853 # Don't test for the default, since it's set to MISSING.
1051 # add a test to make sure that the current behavior doesn't change.
1100 # instead of manually added as we see here. This test isn't really
1347 # We need a factory that we can test if it's been called.
1454 # Also test for an instance attribute.
1925 fields(C)[0].metadata['test'] = 3
1948 fields(C)[0].metadata['test'] = 3
1951 d = {'test': 10, 'bar': '42', 3: 'three'}
1956 self.assertEqual(fields(C)[0].metadata['test'], 10)
1968 fields(C)[0].metadata['test'] = 3
2126 # Same test, but with the base class not a dataclass.
2453 # Perform the test "backward", just to make
2538 def test(case, unsafe_hash, eq, frozen, with_hash, result):
2597 test(case, unsafe_hash, eq, frozen, False, res_no_defined_hash)
2598 test(case, unsafe_hash, eq, frozen, True, res_defined_hash)
2603 test(case, non_bool(unsafe_hash), non_bool(eq), non_bool(frozen), False, res_no_defined_hash)
2604 test(case, non_bool(unsafe_hash), non_bool(eq), non_bool(frozen), True, res_defined_hash)
2728 # I'm not sure what test to use here. object's
3307 # Now test with a default value and init=False, which is the
3571 from test import dataclass_module_1
3572 from test import dataclass_module_1_str
3573 from test import dataclass_module_2
3574 from test import dataclass_module_2_str
3612 from test import dataclass_textanno
3740 # And test for things with no len().
3788 def test(self):