'``SerializableArgument`` throws a ``TypeError`` if one attempts to
deserialize an object of the wrong type.'

def test_wrong_type_deserialization(self):

    argument = SerializableArgument(Deployment)
    as_bytes = argument.toString(_TEST_DEPLOYMENT)
    self.assertRaises(TypeError, SerializableArgument(NodeState).fromString, as_bytes)
