'Test ex_list_networks functionality.'

def test_ex_list_networks(self):

    networks = self.driver.ex_list_networks()
    self.assertEqual(len(networks), 2)
    network = networks[0]
    self.assertEqual(network.id, '5')
    self.assertEqual(network.name, 'Network    5')
    self.assertEqual(network.address, '192.168.0.0')
    self.assertEqual(network.size, '256')
    network = networks[1]
    self.assertEqual(network.id, '15')
    self.assertEqual(network.name, 'Network    15')
    self.assertEqual(network.address, '192.168.1.0')
    self.assertEqual(network.size, '256')
