blob: 349ccf50930e1a4d5e198887a73c4e4b7401f269 [file] [log] [blame]
Vince Lehman797207e2014-07-28 16:30:51 -05001#!/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
9import os
10import unittest
11import subprocess
12
13class 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 Newberryf28295a2015-07-04 17:51:19 -070025 def test_route_expiration(self):
Vince Lehman797207e2014-07-28 16:30:51 -050026 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"