summaryrefslogtreecommitdiff
path: root/test/test_timingharness.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_timingharness.py')
-rwxr-xr-xtest/test_timingharness.py26
1 files changed, 16 insertions, 10 deletions
diff --git a/test/test_timingharness.py b/test/test_timingharness.py
index 917e4e2..3e7e5bd 100755
--- a/test/test_timingharness.py
+++ b/test/test_timingharness.py
@@ -21,7 +21,9 @@ class TestModels(unittest.TestCase):
for transition in "setPALevel setRetries setup write".split(" "):
self.assertAlmostEqual(
- model.stats.param_dependence_ratio(transition, "duration", "channel"),
+ model.attr_by_name[transition]["duration"].stats.param_dependence_ratio(
+ "channel"
+ ),
0,
places=2,
)
@@ -36,10 +38,10 @@ class TestModels(unittest.TestCase):
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"].model_args[0], 1163, places=0,
+ param_info("write", "duration")["function"].model_args[0], 1163, places=0
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"].model_args[1], 464, places=0,
+ param_info("write", "duration")["function"].model_args[1], 464, places=0
)
self.assertAlmostEqual(
param_info("write", "duration")["function"].model_args[2], 1, places=0
@@ -66,7 +68,9 @@ class TestModels(unittest.TestCase):
for transition in "getObserveTx setPALevel setRetries setup write".split(" "):
self.assertAlmostEqual(
- model.stats.param_dependence_ratio(transition, "duration", "channel"),
+ model.attr_by_name[transition]["duration"].stats.param_dependence_ratio(
+ "channel"
+ ),
0,
places=2,
)
@@ -82,10 +86,10 @@ class TestModels(unittest.TestCase):
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"].model_args[0], 1163, places=0,
+ param_info("write", "duration")["function"].model_args[0], 1163, places=0
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"].model_args[1], 464, places=0,
+ param_info("write", "duration")["function"].model_args[1], 464, places=0
)
self.assertAlmostEqual(
param_info("write", "duration")["function"].model_args[2], 1, places=0
@@ -121,7 +125,9 @@ class TestModels(unittest.TestCase):
for transition in "setAutoAck setPALevel setRetries setup write".split(" "):
self.assertAlmostEqual(
- model.stats.param_dependence_ratio(transition, "duration", "channel"),
+ model.attr_by_name[transition]["duration"].stats.param_dependence_ratio(
+ "channel"
+ ),
0,
places=2,
)
@@ -137,10 +143,10 @@ class TestModels(unittest.TestCase):
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"].model_args[0], 1162, places=0,
+ param_info("write", "duration")["function"].model_args[0], 1162, places=0
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"].model_args[1], 464, places=0,
+ param_info("write", "duration")["function"].model_args[1], 464, places=0
)
self.assertAlmostEqual(
param_info("write", "duration")["function"].model_args[2], 1, places=0
@@ -149,7 +155,7 @@ class TestModels(unittest.TestCase):
param_info("write", "duration")["function"].model_args[3], 1, places=0
)
self.assertAlmostEqual(
- param_info("write", "duration")["function"].model_args[4], 1086, places=0,
+ param_info("write", "duration")["function"].model_args[4], 1086, places=0
)