示例#1
0
    def test_parse_header_leave_quotes(self, value, expected_key,
                                       expected_dict):
        from octoprint.server.util.tornado import _parse_header
        actual_key, actual_dict = _parse_header(value, strip_quotes=False)

        self.assertEqual(expected_key, actual_key)
        self.assertDictEqual(expected_dict, actual_dict)
示例#2
0
	def test_parse_header_leave_quotes(self, value, expected_key, expected_dict):
		from octoprint.server.util.tornado import _parse_header
		actual_key, actual_dict = _parse_header(value, strip_quotes=False)

		self.assertEqual(expected_key, actual_key)
		self.assertDictEqual(expected_dict, actual_dict)