Skip to content

Commit

Permalink
Add test for measurement order
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenadia committed Jul 19, 2017
1 parent 4db7825 commit 5ede219
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/core/measurements_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,13 @@ def test_validator_replacement(self):
self.assertMeasurementPass(record, 'replaced_min_only')
self.assertMeasurementFail(record, 'replaced_max_only')
self.assertMeasurementFail(record, 'replaced_min_max')

@htf_test.yields_phases
def test_measurement_order(self):
record = yield all_the_things.dimensions
self.assertEqual(record.measurements.keys(),
['unset_dims', 'dimensions', 'lots_of_dims'])
record = yield all_the_things.measures_with_args.with_args(min=2, max=4)
self.assertEqual(record.measurements.keys(),
['replaced_min_only', 'replaced_max_only',
'replaced_min_max'])

0 comments on commit 5ede219

Please sign in to comment.