Removed unit tests of DynamicMap generator support
@@ -83,34 +83,6 @@ class DynamicMethods(ComparisonTestCase):
-
-class DynamicTestGeneratorOpen(ComparisonTestCase):
-
- def test_generator_open_init(self):
- generator = (Image(sine_array(0,i)) for i in range(10))
- dmap=DynamicMap(generator)
- self.assertEqual(dmap.mode, 'open')
-
- def test_generator_open_clone(self):
- generator = (Image(sine_array(0,i)) for i in range(10))
- dmap=DynamicMap(generator)
- self.assertEqual(dmap, dmap.clone())
-
- def test_generator_open_stopiteration(self):
- generator = (Image(sine_array(0,i)) for i in range(10))
- dmap=DynamicMap(generator)
- for i in range(10):
- el = next(dmap)
- self.assertEqual(type(el), Image)
- try:
- el = next(dmap)
- raise AssertionError("StopIteration not raised when expected")
- except Exception as e:
- if e.__class__ != StopIteration:
- raise AssertionError("StopIteration was expected, got %s" % e)
-
-
-
class DynamicTestCallableOpen(ComparisonTestCase):
def test_callable_open_init(self):
