summaryrefslogtreecommitdiffstats
path: root/test/test_lisp.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_lisp.py')
-rw-r--r--test/test_lisp.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_lisp.py b/test/test_lisp.py
index b6272dcb1bd..f66fcf79bc0 100644
--- a/test/test_lisp.py
+++ b/test/test_lisp.py
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+
+import abc
+import six
import unittest
from scapy.fields import BitField, ByteField, FlagsField, IntField
@@ -28,6 +31,7 @@ bind_layers(LISP_GPE_Header, IPv6, next_proto=2)
bind_layers(LISP_GPE_Header, Ether, next_proto=3)
+@six.add_metaclass(abc.ABCMeta)
class Driver(object):
config_order = ['locator-sets',
@@ -61,7 +65,7 @@ class Driver(object):
Raw(payload))
return packet
- @abstractmethod
+ @abc.abstractmethod
def run(self):
""" testing procedure """
pass