Skip to content
Prev Previous commit
Next Next commit
test_first_hop_fails
  • Loading branch information
dwhswenson committed Nov 2, 2015
commit 31ffec173834197c44380f06aa23779a62e25460
15 changes: 15 additions & 0 deletions openpathsampling/tests/testpathmover.py
Original file line number Diff line number Diff line change
Expand Up @@ -1211,4 +1211,19 @@ def test_successful_move(self):
seg_dir[key] = 1
assert_equal(len(seg_dir.keys()), 2)

def test_first_hop_fails(self):
crossing_traj = make_1d_traj([-0.11, 0.11, 0.31, 1.01], [1.0]*4)
crossing_samp = Sample(replica=0, trajectory=crossing_traj,
ensemble=self.innermost)
gs = SampleSet([crossing_samp])
gs.sanity_check()

change = self.mover.move(gs)
assert_equal(len(change.results), 0)
sub_trials = change.subchange.subchange.trials
assert_equal(len(sub_trials), 1)
assert_equal(sub_trials[0].trajectory, crossing_traj)
assert_equal(sub_trials[0].ensemble, self.minus._segment_ensemble)

def test_extension_fails(self):
raise SkipTest