aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2019-06-02 17:21:21 +0200
committerMichael Buesch <m@bues.ch>2019-06-02 17:21:21 +0200
commit8c96c5a666636ebd536af8dbad4fa358f40671b3 (patch)
treea48158980e88494d89632607217667424e17fdc2
parent4d1e52a33144f1e9c182b8bb345627f763424a54 (diff)
downloadpyprofibus-8c96c5a666636ebd536af8dbad4fa358f40671b3.zip
pyprofibus-8c96c5a666636ebd536af8dbad4fa358f40671b3.tar.xz
tests: Fix dummy phy test
Signed-off-by: Michael Buesch <m@bues.ch>
-rw-r--r--tests/test_dummy.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/tests/test_dummy.py b/tests/test_dummy.py
index 86e6973..276df99 100644
--- a/tests/test_dummy.py
+++ b/tests/test_dummy.py
@@ -4,15 +4,14 @@ from pyprofibus_tstlib import *
def test_dummy_phy():
phy = pyprofibus.phy_dummy.CpPhyDummySlave(debug = True)
- phy.setConfig(baudrate = 19200)
+ phy.setConfig(baudrate=19200)
- master = pyprofibus.DPM1(phy = phy,
- masterAddr = 42,
- debug = True)
+ master = pyprofibus.DPM1(phy=phy,
+ masterAddr=42,
+ debug=True)
- slaveDesc = pyprofibus.DpSlaveDesc(
- identNumber = 0x6666,
- slaveAddr = 84)
+ slaveDesc = pyprofibus.DpSlaveDesc(gsd=None,
+ slaveAddr=84)
slaveDesc.setCfgDataElements([
pyprofibus.DpCfgDataElement(pyprofibus.DpCfgDataElement.ID_TYPE_OUT),
bues.ch cgit interface