Hila Ben Abraham | a36f0d1 | 2016-02-08 18:03:47 -0600 | [diff] [blame^] | 1 | #!/usr/bin/python2 |
| 2 | |
| 3 | import os |
| 4 | import unittest |
| 5 | import subprocess |
| 6 | |
| 7 | class 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" |