From a435f67abd4f8591cc0df7f55312773d4b41aa60 Mon Sep 17 00:00:00 2001 From: Nick Savage Date: Tue, 19 Jun 2018 18:10:04 +0100 Subject: [PATCH] add new doctest --- lib/iris/fileformats/pp.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/iris/fileformats/pp.py b/lib/iris/fileformats/pp.py index 24dab953f0..f9b3a3a23a 100644 --- a/lib/iris/fileformats/pp.py +++ b/lib/iris/fileformats/pp.py @@ -245,6 +245,11 @@ class STASH(collections.namedtuple('STASH', 'model section item')): >>> print(iris.fileformats.pp.STASH(1, 16, 203)) m01s16i203 + A stash object can be compared directly + to its string representation: + >>> iris.fileformats.pp.STASH(1, 0, 4) == 'm01s0i004' + True + """ __slots__ = ()