diff options
author | Diana Picus <diana.picus@linaro.org> | 2016-09-15 17:20:40 +0300 |
---|---|---|
committer | Diana Picus <diana.picus@linaro.org> | 2016-09-15 17:22:00 +0300 |
commit | e390ab20c694cea5ab486c0aa40f80168c5e69ee (patch) | |
tree | 7bd001f442cdc59b847acf711fa8d83f0d0f609d | |
parent | b7144e236138a7a58b9b9e5793d9c57db33c6879 (diff) |
Fix testrn.pydiana_picus/format
I didn't manage to run the tests because of 3 issues:
1. from unittest instead of import unittest
2. inheriting from TestCase instead of unittest.TestCase
3. indentation errors
-rw-r--r-- | testrn.py | 37 |
1 files changed, 18 insertions, 19 deletions
@@ -1,28 +1,27 @@ -from unittest +import unittest from rn import create_parser -class TestRn(TestCase): -""" -Base TestCase class, sets up a CLI parser -""" +class TestRn(unittest.TestCase): + """ + Base TestCase class, sets up a CLI parser + """ + @classmethod + def setUpClass(cls): + parser = create_parser() + cls.parser = 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) - -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 + # 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 + pass if __name__ == '__main__': unittest.main() |