blob: bef43099ebc86cee61495a72b691665250a99a09 [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
25 def test_nrd(self):
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"