From a4158a27fdcb64ea6700e62da7b41221057bcecd Mon Sep 17 00:00:00 2001 From: Pete Jemian Date: Thu, 15 Aug 2019 00:30:22 -0500 Subject: [PATCH] TST #196 --- tests/test_plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_plugin.py b/tests/test_plugin.py index d813d829..f0cf2943 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -206,6 +206,7 @@ def test_empty_positioner(self): self.assertGreater(scan.raw.find("\n#P0 \n"), 0) self.assertEqual(len(scan.P), 1) self.assertEqual(len(scan.P[0]), 0) + self.assertEqual(len(scan.positioner), 0) def test_nonempty_positioner(self): "issue #196" @@ -229,6 +230,9 @@ def test_nonempty_positioner(self): self.assertEqual(len(scan.P), 1) self.assertEqual(len(scan.P[0]), 1) self.assertEqual(scan.P[0][0], "8.824977") + self.assertEqual(len(scan.positioner), 1) + self.assertTrue("m_stage_r" in scan.positioner) + self.assertEqual(scan.positioner["m_stage_r"], float("8.824977")) def suite(*args, **kw):