diff options
Diffstat (limited to 'testrn.py')
-rw-r--r-- | testrn.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testrn.py b/testrn.py new file mode 100644 index 0000000..196cbaf --- /dev/null +++ b/testrn.py @@ -0,0 +1,24 @@ +from unittest +from rn import create_parser + +class TestRn(TestCase): +""" +Base TestCase class, sets up a CLI parser +""" +@classmethod +def setUpClass(cls): + parser = create_parser() + cls.parser = parser + +def test_foo(self): +# args = self.parser.parse_args(['foo', '-R', '', '-A', 'idbs81839']) +# result = ping(args.tags, args.region, args.ami) +# self.assertIsNotNone(result) + +# TODO: test %Y.%m.%d dates +# TODO: test %Y.%m dates +# TODO: test non-conformant dates +# TODO: snapshots/linaro-5.3-2016.05-6 -c -d "2016.06." --strict + +if __name__ == '__main__': + unittest.main() |