def test_is_valid_failed(self):
     message = InternalMessage("identity", "")
     self.assertFalse(message.is_valid())
     message = InternalMessage("", "command")
     self.assertFalse(message.is_valid())
     message = InternalMessage("", "")
     self.assertFalse(message.is_valid())
 def test_is_valid_succeed(self):
     message = InternalMessage("identity", "command")
     self.assertTrue(message.is_valid())
     message = InternalMessage("identity", "command", "arguments")
     self.assertTrue(message.is_valid())