def test_parse_position_line(self, line, expected):
     from octoprint.util.comm import parse_position_line
     result = parse_position_line(line)
     if expected is None:
         self.assertIsNone(result)
     else:
         self.assertDictEqual(expected, result)
Esempio n. 2
0
	def test_parse_position_line(self, line, expected):
		from octoprint.util.comm import parse_position_line
		result = parse_position_line(line)
		if expected is None:
			self.assertIsNone(result)
		else:
			self.assertDictEqual(expected, result)