Browse Source

python: compact trade.AbstractImporter image tests a bit.

next
Vladimír Vondruš 3 years ago
parent
commit
744bffada6
  1. 7
      src/python/magnum/test/test_trade.py

7
src/python/magnum/test/test_trade.py

@ -596,13 +596,10 @@ class Importer(unittest.TestCase):
importer.mesh_count
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.mesh_level_count(0)
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.mesh_for_name('')
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.mesh_name(0)
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.mesh(0)
with self.assertRaisesRegex(AssertionError, "no file opened"):
@ -614,28 +611,24 @@ class Importer(unittest.TestCase):
importer.image2d_count
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.image3d_count
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.image1d_level_count(0)
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.image2d_level_count(0)
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.image3d_level_count(0)
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.image1d_for_name('')
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.image2d_for_name('')
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.image3d_for_name('')
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.image1d_name(0)
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.image2d_name(0)
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.image3d_name(0)
with self.assertRaisesRegex(AssertionError, "no file opened"):
importer.image1d(0)
with self.assertRaisesRegex(AssertionError, "no file opened"):

Loading…
Cancel
Save