Assert response headers

This commit is contained in:
AKFish
2013-08-21 21:11:12 +08:00
parent e06257d060
commit aa3025271c
+5 -1
View File
@@ -245,7 +245,11 @@ class BasicTestCase(unittest.TestCase):
class TestCase(BasicTestCase):
def doCheckFrame(self, obj, frame):
pass
if obj._headers == {} and frame is None:
return
if obj._headers is None and frame == {}:
return
self.assertEqual(obj._headers, frame[2]);
def getFrameChecker(self):