Vince Lehman | 797207e | 2014-07-28 16:30:51 -0500 | [diff] [blame] | 1 | #!/usr/bin/python2 |
| 2 | # -*- Mode:python; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 3 | # |
| 4 | # Copyright (C) 2014 The University of Memphis |
| 5 | # Author: Vince Lehman <vslehman@memphis.edu> |
| 6 | # See COPYING for copyright and distribution information. |
| 7 | # |
| 8 | |
| 9 | import os |
| 10 | import unittest |
| 11 | import subprocess |
| 12 | |
| 13 | class test_route_expiration(unittest.TestCase): |
| 14 | """Test case for NRD route expiration""" |
| 15 | |
| 16 | def setUp(self): |
| 17 | print "\nTesting NRD route expiration" |
| 18 | print "***********" |
| 19 | os.chdir("test_route_expiration") |
| 20 | |
| 21 | def tearDown(self): |
| 22 | print "***********" |
| 23 | os.chdir("..") |
| 24 | |
Eric Newberry | f28295a | 2015-07-04 17:51:19 -0700 | [diff] [blame] | 25 | def test_route_expiration(self): |
Vince Lehman | 797207e | 2014-07-28 16:30:51 -0500 | [diff] [blame] | 26 | ret = subprocess.call(["./route-expiration-test.sh"], shell=True) |
| 27 | |
| 28 | if ret != 0: |
| 29 | self.fail("NRD route expiration test FAILED") |
| 30 | else: |
| 31 | print "NRD route expiration test PASSED" |