def test_secret_value(self): secret = Secret() for wrongtype in WRONGTYPES_INT: with self.assertRaises(TypeError): secret.value = wrongtype with self.assertRaises(ValueError): secret.value = 0 with self.assertRaises(ValueError): secret.value = -1 with self.assertRaises(ValueError): secret.value = Primes.biggest() + 1
def test_secret_value(self): secret = Secret() secret.value = 1633902946 self.assertEqual(secret.value, 1633902946)