def testIterable(self):
    with self.assertRaisesRegex(TypeError, 'not iterable'):
        for _ in variables.Variable(0.0):
            pass
    with self.assertRaisesRegex(TypeError, 'not iterable'):
        for _ in variables.Variable([0.0, 1.0]):
            pass
def testIterable(self):
    with self.assertRaisesRegex(TypeError, 'not iterable'):
        for _ in variables.Variable(0.0):
            pass
    with self.assertRaisesRegex(TypeError, 'not iterable'):
        for _ in variables.Variable([0.0, 1.0]):
            pass