From 4db93a79e310a8620abb602260ab27301ed7b50d Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Wed, 6 Nov 2013 11:25:01 +0100 Subject: [PATCH] MT#4817 add tests for not match rules --- bin/test_check.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/test_check.py b/bin/test_check.py index 610b62c7..8e14fed8 100644 --- a/bin/test_check.py +++ b/bin/test_check.py @@ -136,7 +136,8 @@ Path: """ - 'Contact: "TestBria" ;reg-id=1;\+sip.instance=""' - 'Contact: "TestBria" ;expires=0' - 'Content-Length: 0' -- 'Expires: 600' +- 'Expires: \d+' +- '_:NOT:_Expires: 0' - 'Authorization: Digest username="testuser1003"'""") check_sip(sip_in, self.msg, self.ctest) print self.ctest @@ -186,7 +187,8 @@ class TestCheckSipOut(unittest.TestCase): 'Contact: ;expires=600;\+sip.instance="";reg-id=1', 'Content-Length: 0', 'P-NGCP-Authorization: testuser1003@', - 'P-NGCP-Authorized: 1' + 'P-NGCP-Authorized: 1', + '_:NOT:_Contact: ;expires=\d+' ]""") check_sip_out(sip_out, self.msg, self.ctest) print self.ctest