Skip to content

Commit

Permalink
TST #196
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Aug 15, 2019
1 parent 750ab15 commit a4158a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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):
Expand Down

0 comments on commit a4158a2

Please sign in to comment.