diff options
Diffstat (limited to 'src/net/ip.py')
-rw-r--r-- | src/net/ip.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/ip.py b/src/net/ip.py index bcf90a2..c7e5ec7 100644 --- a/src/net/ip.py +++ b/src/net/ip.py @@ -1,6 +1,4 @@ class IP4Address(object): - ''' print an IP4Address - ''' __slots__ = ('_value') name = 'tmwa::IP4Address' enabled = True @@ -12,3 +10,7 @@ class IP4Address(object): addr = self._value['_addr'] addr = tuple(int(addr[i]) for i in range(4)) return '%d.%d.%d.%d' % addr + + tests = [ + ('tmwa::IP4Address({1,2,3,4})', '1.2.3.4'), + ] |