Lines Matching refs:self
9 def testSentinels(self):
10 self.assertEqual(sentinel.whatever, sentinel.whatever,
12 self.assertNotEqual(sentinel.whatever, sentinel.whateverelse,
16 def testSentinelName(self):
17 self.assertEqual(str(sentinel.whatever), 'sentinel.whatever',
21 def testDEFAULT(self):
22 self.assertIs(DEFAULT, sentinel.DEFAULT)
24 def testBases(self):
26 self.assertRaises(AttributeError, lambda: sentinel.__bases__)
28 def testPickle(self):
30 with self.subTest(protocol=proto):
33 self.assertIs(unpickled, sentinel.whatever)
35 def testCopy(self):
36 self.assertIs(copy.copy(sentinel.whatever), sentinel.whatever)
37 self.assertIs(copy.deepcopy(sentinel.whatever), sentinel.whatever)