fix failing tests?

Is 3.5 failing because of a space?
This commit is contained in:
Brian Martin
2019-02-28 08:49:05 -05:00
parent 3dbaccd2e8
commit 91e3f3d577
+2 -2
View File
@@ -13,12 +13,12 @@ def test_wrap_command():
c = str(x._wrap_command(Clean().to_xml(), 'E0000000001234567890@126.ecorobot.net/atom')) c = str(x._wrap_command(Clean().to_xml(), 'E0000000001234567890@126.ecorobot.net/atom'))
assert_true(search(r'from="20170101abcdefabcdefa@ecouser.net/abcdef12"', c)) assert_true(search(r'from="20170101abcdefabcdefa@ecouser.net/abcdef12"', c))
assert_true(search(r'to="E0000000001234567890@126.ecorobot.net/atom"', c)) assert_true(search(r'to="E0000000001234567890@126.ecorobot.net/atom"', c))
#Remove failing Python 3.5 test for now - assert_true(search(r'td="Clean" id="',c)) #Check that an id was added to ctl assert_true(search(r'td="Clean" id="', c)) #Check that an id was added to ctl
cwithid = Clean().to_xml() cwithid = Clean().to_xml()
cwithid.attrib["id"] = "12345678" cwithid.attrib["id"] = "12345678"
c = str(x._wrap_command(cwithid, 'E0000000001234567890@126.ecorobot.net/atom')) c = str(x._wrap_command(cwithid, 'E0000000001234567890@126.ecorobot.net/atom'))
assert_true(search(r'td="Clean" id="12345678',c)) #Check that customid was added to ctl assert_true(search(r'td="Clean" id="12345678', c)) #Check that customid was added to ctl
def test_getReqID(): def test_getReqID():
x = make_ecovacs_xmpp() x = make_ecovacs_xmpp()