def test_staging(self):
        network = Constructor()
        network.set_grid(5, 5, 100)
        network.delete_connection(0, 1)
        with self.assertRaises(
                AssertionError):  # no moving after deleting street
            network.move_horizontal_line(0, 10)
        with self.assertRaises(AssertionError):
            network.move_vertical_line(0, 10)

        network.modify_adjacency(10, 0.5, 0.5)
        with self.assertRaises(AssertionError):  # no moving after modifying
            network.move_vertical_line(0, 10)
        with self.assertRaises(AssertionError):
            network.move_horizontal_line(0, 10)
        with self.assertRaises(AssertionError):  # no deleting after modifying
            network.delete_connection(0, 1)
 def test_delete_connection(self):
     # Test normal usage
     network = Constructor()
     network.set_grid(5, 5, 100)
     network.delete_connection(6, 7)
     network.delete_connection(7, 8)
     network.delete_connection(2, 11)
     network.delete_connection(2, 6)
     adjacency = network.get_adjacency()
     positions = network.get_positions()
     self.assertEqual(len(adjacency), 22)
     self.assertEqual(len(positions), 22)
     network.modify_adjacency(10, 0.5, 0.5)