def test_parsing(self):
     for line in self.canonicalStrings:
         self.assertFalse(SIPRequestStartLine.canMatchString(line))
         self.assertFalse(SIPResponseStartLine.canMatchString(line))
         startLine = MalformedSIPStartLine.newParsedFrom(line)
         self.assertFalse(startLine.isRequest)
         self.assertFalse(startLine.isResponse)
         self.assertTrue(startLine.isMalformed)
         self.assertEqual(startLine.rawString, line)
 def run_test_rendering_from_list_of_field_names_and_values_using_property_dict(self):
     headerFields = self.listOfHeaderFieldNamesAndValuesUsingPropertyDictForAssertion
     message = self.sipMessageClassUnderTest._newForAttributes(startLine=MalformedSIPStartLine.newParsedFrom('Malformed start line'), content='Foo Content', header=SIPHeader.newForAttributes(headerFields=headerFields))
     self.runAssertionsForSIPMessage(message)
 def run_test_rendering_from_list_of_header_field_strings(self):
     headerFields = self.listOfHeaderFieldStringsForAssertion
     message = self.sipMessageClassUnderTest._newForAttributes(startLine=MalformedSIPStartLine.newParsedFrom('Malformed start line'), content='Foo Content', header=SIPHeader.newForAttributes(headerFields=headerFields))
     self.runAssertionsForSIPMessage(message)