diff options
author | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-03-08 10:28:20 +0200 |
---|---|---|
committer | Yaroslav Brustinov <ybrustin@cisco.com> | 2016-03-08 10:28:20 +0200 |
commit | afefddfa387dad83bbcb15812bd279cf3197f583 (patch) | |
tree | a0da1554a09da985ff65e63bfee7b9e1c4a240f5 /scripts/automation/regression/unit_tests/functional_tests/platform_if_obj_test.py | |
parent | 29c78819b903a2933e8ba106faa5ba5745eb527e (diff) |
regression: add stateless support (WIP); Scapy builder: fix remove MACs from binary, do not build by default;
Diffstat (limited to 'scripts/automation/regression/unit_tests/functional_tests/platform_if_obj_test.py')
-rwxr-xr-x | scripts/automation/regression/unit_tests/functional_tests/platform_if_obj_test.py | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/scripts/automation/regression/unit_tests/functional_tests/platform_if_obj_test.py b/scripts/automation/regression/unit_tests/functional_tests/platform_if_obj_test.py deleted file mode 100755 index 534d4170..00000000 --- a/scripts/automation/regression/unit_tests/functional_tests/platform_if_obj_test.py +++ /dev/null @@ -1,49 +0,0 @@ -#!/router/bin/python - -from platform_cmd_link import * -import functional_general_test -from nose.tools import assert_equal -from nose.tools import assert_not_equal - - -class CIfObj_Test(functional_general_test.CGeneralFunctional_Test): - test_idx = 1 - - def setUp(self): - self.if_1 = CIfObj('gig0/0/1', '1.1.1.1', '2001:DB8:0:2222:0:0:0:1', '0000.0001.0000', '0000.0001.0000', IFType.Client) - self.if_2 = CIfObj('TenGig0/0/0', '1.1.2.1', '2001:DB8:1:2222:0:0:0:1', '0000.0002.0000', '0000.0002.0000', IFType.Server) - CIfObj_Test.test_idx += 1 - - def test_id_allocation(self): - assert (self.if_1.get_id() < self.if_2.get_id() < CIfObj._obj_id) - - def test_isClient(self): - assert_equal (self.if_1.is_client(), True) - - def test_isServer(self): - assert_equal (self.if_2.is_server(), True) - - def test_get_name (self): - assert_equal (self.if_1.get_name(), 'gig0/0/1') - assert_equal (self.if_2.get_name(), 'TenGig0/0/0') - - def test_get_src_mac_addr (self): - assert_equal (self.if_1.get_src_mac_addr(), '0000.0001.0000') - - def test_get_dest_mac (self): - assert_equal (self.if_2.get_dest_mac(), '0000.0002.0000') - - def test_get_ipv4_addr (self): - assert_equal (self.if_1.get_ipv4_addr(), '1.1.1.1' ) - assert_equal (self.if_2.get_ipv4_addr(), '1.1.2.1' ) - - def test_get_ipv6_addr (self): - assert_equal (self.if_1.get_ipv6_addr(), '2001:DB8:0:2222:0:0:0:1' ) - assert_equal (self.if_2.get_ipv6_addr(), '2001:DB8:1:2222:0:0:0:1' ) - - def test_get_type (self): - assert_equal (self.if_1.get_if_type(), IFType.Client) - assert_equal (self.if_2.get_if_type(), IFType.Server) - - def tearDown(self): - pass |