blob: 465cbc7985bcc21748ede2fac39a6eeadb2847fd [file] [log] [blame]
Hila Ben Abrahame8c22e92016-10-20 14:30:32 -05001#!/usr/bin/python2
2
3import os
4import unittest
5import subprocess
6
7class test_nack(unittest.TestCase):
8 """Test case for testing nack"""
9
10 def setUp(self):
11 print "\nTesting nack with best-route"
12 print "*****************************"
13 os.chdir("test_nack")
14 os.system("mkdir -p logs")
15
16 def tearDown(self):
17 print "********************************"
18 os.chdir("..")
19
20 def test_nack(self):
21 print ">>> test nack <<<"
22
23 ret = subprocess.call(['./nack-test.sh'], shell=True)
24
25 if (ret != 0):
26 self.fail(" >> TEST NACK FAILED")
27 else:
28 print ">> TEST NACK PROCEDURE PASSED SUCCESSFULLY"
29