示例#1
0
 def testGetIntOrNoneHasNoKey(self):
   dct = {'abc': 123}
   self.assertIsNone(loader._getIntOrNone(dct, 'def'))
示例#2
0
 def testGetIntOrNoneHasKey(self):
   dct = {'abc': 123}
   self.assertEqual(123, loader._getIntOrNone(dct, 'abc'))