def test_have_all_fields(self) -> None: self.assertEqual(split_key("type data cmt"), ["type", "data", "cmt"])
def test_missing_comment(self) -> None: self.assertEqual(split_key("type data "), ["type", "data", ""])
def test_missing_data_and_comment(self) -> None: with self.assertRaises(ServerError): split_key("type")
def test_excessive_fields(self) -> None: with self.assertRaises(ServerError): split_key("type data comment xyz")
def test_empty(self) -> None: with self.assertRaises(ServerError): split_key("")