def test_intnullable_to_none(self, raw): act = intnullable(raw) self.assertIsNone(act)
def test_intnullable_raises(self, raw): with self.assertRaises(Exception): intnullable(raw)
def test_intnullable(self, raw, exp): act = intnullable(raw) self.assertEqual(act, exp)