summaryrefslogtreecommitdiffhomepage
path: root/tests/unit/sample
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-06-26 15:04:43 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-06-26 15:17:44 +0900
commita67ed2858417b9d795460f05126c01fb0cd344f9 (patch)
tree8171336c30668f8fce7d18125a591de86c322f40 /tests/unit/sample
parentd8ae9491dab0824eb88b7e8aad044302d1463f84 (diff)
tests: Separate test files from Ryu module
To prevent redundant files (e.g., pcap files, json files for tests, packet data generator) to be installed, this patch separates test directory from Ryu module. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'tests/unit/sample')
-rw-r--r--tests/unit/sample/__init__.py0
-rw-r--r--tests/unit/sample/test_sample1.py20
-rw-r--r--tests/unit/sample/test_sample2.py14
3 files changed, 34 insertions, 0 deletions
diff --git a/tests/unit/sample/__init__.py b/tests/unit/sample/__init__.py
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/tests/unit/sample/__init__.py
diff --git a/tests/unit/sample/test_sample1.py b/tests/unit/sample/test_sample1.py
new file mode 100644
index 00000000..b4963556
--- /dev/null
+++ b/tests/unit/sample/test_sample1.py
@@ -0,0 +1,20 @@
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
+import unittest
+from nose.tools import ok_, eq_
+# from ryu.app.simple_switch import SimpleSwitch
+
+import logging
+
+
+LOG = logging.getLogger('tests.test_sample1')
+
+
+class TestSample1(unittest.TestCase):
+
+ def testS1Func1(self):
+ LOG.debug('testS1Func1 - START')
+ ok_(True)
+
+ def testS1Func2(self):
+ ok_(True)
diff --git a/tests/unit/sample/test_sample2.py b/tests/unit/sample/test_sample2.py
new file mode 100644
index 00000000..9c21a42a
--- /dev/null
+++ b/tests/unit/sample/test_sample2.py
@@ -0,0 +1,14 @@
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
+
+import unittest
+from nose.tools import ok_, eq_
+# from ryu.app.simple_switch import SimpleSwitch
+
+
+class TestSample2(unittest.TestCase):
+
+ def testS2Func1(self):
+ ok_(True)
+
+ def testS2Func2(self):
+ ok_(True)