Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_class(self):
from diffprivlib.mechanisms import DPMechanism
self.assertTrue(issubclass(Staircase, DPMechanism))
def test_instantiation(self):
with self.assertRaises(TypeError):
DPMechanism()
def test_class(self):
from diffprivlib.mechanisms import DPMechanism
self.assertTrue(issubclass(ExponentialHierarchical, DPMechanism))
def test_class(self):
from diffprivlib.mechanisms import DPMechanism
self.assertTrue(issubclass(GeometricFolded, DPMechanism))
def test_class(self):
from diffprivlib.mechanisms import DPMechanism
self.assertTrue(issubclass(LaplaceTruncated, DPMechanism))
def test_class(self):
from diffprivlib.mechanisms import DPMechanism
self.assertTrue(issubclass(Binary, DPMechanism))
def test_class(self):
from diffprivlib.mechanisms import DPMechanism
self.assertTrue(issubclass(Exponential, DPMechanism))
def test_class(self):
from diffprivlib.mechanisms import DPMechanism
self.assertTrue(issubclass(LaplaceBoundedNoise, DPMechanism))