Extend test.mfp3d_driver to test both MFP3D file versions we have available.
authorW. Trevor King <wking@drexel.edu>
Fri, 4 Jun 2010 08:50:36 +0000 (04:50 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 4 Jun 2010 08:50:36 +0000 (04:50 -0400)
test/mfp3d_driver.py

index 12f9352e84af37957f52da9b31a73a66010495a7..984007cdc131d0cba2b9f7fd6681f691c2a22244 100644 (file)
@@ -20,7 +20,7 @@
 >>> from hooke.hooke import Hooke, HookeRunner
 >>> h = Hooke()
 >>> r = HookeRunner()
->>> h = r.run_lines(h, ['load_playlist test/data/vclamp_mfp3d/playlist']) # doctest: +ELLIPSIS
+>>> h = r.run_lines(h, ['load_playlist test/data/vclamp_mfp3d/playlist'])
 <FilePlaylist playlist.hkp>
 Success
 <BLANKLINE>
@@ -35,4 +35,21 @@ blocks: 2
 block sizes: [(1091, 2), (0, 2)]
 Success
 <BLANKLINE>
+
+Also checkout a newer Image* file
+
+>>> h = r.run_lines(h, ['previous_curve'])
+Success
+<BLANKLINE>
+>>> h = r.run_lines(h, ['curve_info']) # doctest: +ELLIPSIS, +REPORT_UDIFF
+name: Image0396.ibw
+path: test/data/vclamp_mfp3d/Image0396.ibw
+experiment: <class 'hooke.experiment.VelocityClamp'>
+driver: <hooke.driver.mfp3d.MFP3DDriver object at 0x...>
+filetype: mfp3d
+note: 
+blocks: 2
+block sizes: [(1006, 3), (0, 3)]
+Success
+<BLANKLINE>
 """