blob: 7f8120544c61f87a26797152cba60adf67e91dde [file] [log] [blame]
Hila Ben Abrahama36f0d12016-02-08 18:03:47 -06001#!/usr/bin/python2
2
3import os
4import unittest
5import subprocess
6
7class test_route_inheritance(unittest.TestCase):
8 """Test case for testing route inheritance flags"""
9
10 def setUp(self):
11 print "\nTesting route inheritance flags"
12 print "*****************************"
13 os.chdir("test_route_inheritance")
14 os.system("mkdir -p logs")
15
16 def tearDown(self):
17 print "********************************"
18 os.chdir("..")
19
20 def test_route_inheritance(self):
21 print ">>> test route inheritance <<<"
22
23 ret = subprocess.call(['./route-inheritance-test.sh'], shell=True)
24
25 if (ret != 0):
26 self.fail(" >> TEST ROUTE INHERITANCE FLAGS FAILED")
27 else:
28 print ">> TEST ROUTE INHERITANCE FLAGS PROCEDURE PASSED SUCCESSFULLY"