summaryrefslogtreecommitdiff
path: root/testrn.py
blob: 196cbaf333bed4f6c066f858303492bd73af2688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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()