def testConstructors(self):
    t = IECore.TurbulenceV2ff()
    self.assertEqual(t.octaves, 4)
    self.assertEqual(t.gain, 0.5)
    self.assertEqual(t.lacunarity, 2)
    self.assertEqual(t.turbulent, True)
    t = IECore.TurbulenceV2ff(2, 1, 3, False)
    self.assertEqual(t.octaves, 2)
    self.assertEqual(t.gain, 1)
    self.assertEqual(t.lacunarity, 3)
    self.assertEqual(t.turbulent, False)
    t = IECore.TurbulenceV2ff(octaves=3, gain=1.4, lacunarity=3, turbulent=False)
    self.assertEqual(t.octaves, 3)
    self.assertAlmostEqual(t.gain, 1.4)
    self.assertEqual(t.lacunarity, 3)
    self.assertEqual(t.turbulent, False)
def testConstructors(self):
    t = IECore.TurbulenceV2ff()
    self.assertEqual(t.octaves, 4)
    self.assertEqual(t.gain, 0.5)
    self.assertEqual(t.lacunarity, 2)
    self.assertEqual(t.turbulent, True)
    t = IECore.TurbulenceV2ff(2, 1, 3, False)
    self.assertEqual(t.octaves, 2)
    self.assertEqual(t.gain, 1)
    self.assertEqual(t.lacunarity, 3)
    self.assertEqual(t.turbulent, False)
    t = IECore.TurbulenceV2ff(octaves=3, gain=1.4, lacunarity=3, turbulent=False)
    self.assertEqual(t.octaves, 3)
    self.assertAlmostEqual(t.gain, 1.4)
    self.assertEqual(t.lacunarity, 3)
    self.assertEqual(t.turbulent, False)