'tests the network creation and deletion functionalities:
* creates a new private network and a new subnet associated with it
* verifies the network appears in the networks table as active
* deletes the newly created network
* verifies the network does not appear in the table after deletion'

def test_private_network_create(self):

    networks_page = self.home_pg.go_to_network_networkspage()
    networks_page.create_network(self.NETWORK_NAME, self.SUBNET_NAME)
    self.assertTrue(networks_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(networks_page.find_message_and_dismiss(messages.ERROR))
    self.assertTrue(networks_page.is_network_present(self.NETWORK_NAME))
    self.assertTrue(networks_page.is_network_active(self.NETWORK_NAME))
    networks_page.delete_network(self.NETWORK_NAME)
    self.assertTrue(networks_page.find_message_and_dismiss(messages.SUCCESS))
    self.assertFalse(networks_page.find_message_and_dismiss(messages.ERROR))
    self.assertFalse(networks_page.is_network_present(self.NETWORK_NAME))
