Signed-off-by: YAMAMOTO Takashi <[email protected]>
---
 ryu/tests/unit/ofproto/test_parser.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/ryu/tests/unit/ofproto/test_parser.py 
b/ryu/tests/unit/ofproto/test_parser.py
index e0da612..c197b9e 100644
--- a/ryu/tests/unit/ofproto/test_parser.py
+++ b/ryu/tests/unit/ofproto/test_parser.py
@@ -239,9 +239,11 @@ def _add_tests():
         'of14',
         'of15',
     ]
+    cases = set()
     for ver in ofvers:
         pdir = packet_data_dir + '/' + ver
         jdir = json_dir + '/' + ver
+        n_added = 0
         for file in os.listdir(pdir):
             if not fnmatch.fnmatch(file, '*.packet'):
                 continue
@@ -258,5 +260,10 @@ def _add_tests():
             f.func_name = method_name
             f.__name__ = method_name
             setattr(Test_Parser, method_name, f)
+            cases.add(method_name)
+            n_added += 1
+        assert n_added > 0
+    assert (cases ==
+            set(unittest.defaultTestLoader.getTestCaseNames(Test_Parser)))
 
 _add_tests()
-- 
2.2.1


------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to