networks: Minor trimming to tests

- To focus only on what is being tested.
This commit is contained in:
Sunil Mohan Adapa 2016-02-09 09:33:25 +05:30
parent 1851b15836
commit 082c5ee1ce
No known key found for this signature in database
GPG Key ID: 36C361440C9BC971

View File

@ -207,9 +207,6 @@ class TestNetwork(unittest.TestCase):
"""Check that we can manually set IPv4 address on ethernet."""
connection = network.get_connection(self.ethernet_uuid)
ethernet_settings2 = copy.deepcopy(ethernet_settings)
ethernet_settings2['common']['name'] = 'plinth_test_eth_new'
ethernet_settings2['common']['interface'] = 'eth0'
ethernet_settings2['common']['zone'] = 'external'
ethernet_settings2['ipv4']['method'] = 'manual'
ethernet_settings2['ipv4']['address'] = '169.254.0.1'
ethernet_settings2['ipv4']['netmask'] = '255.255.254.0'
@ -235,9 +232,6 @@ class TestNetwork(unittest.TestCase):
"""Check that we can manually set IPv4 address on wifi."""
connection = network.get_connection(self.wifi_uuid)
wifi_settings2 = copy.deepcopy(wifi_settings)
wifi_settings2['common']['name'] = 'plinth_test_wifi_new'
wifi_settings2['common']['interface'] = 'wlan0'
wifi_settings2['common']['zone'] = 'external'
wifi_settings2['ipv4']['method'] = 'manual'
wifi_settings2['ipv4']['address'] = '169.254.0.2'
wifi_settings2['ipv4']['netmask'] = '255.255.254.0'