Esempio n. 1
0
def test_initial_ports(revert_undo):
    """Test initial ports amount.

    """
    line = Line()
    assert 1 == len(line.ports())
Esempio n. 2
0
 def test_initial_ports(self):
     """Test initial ports amount
     """
     line = Line()
     self.assertEquals(1, len(line.ports()))
Esempio n. 3
0
 def test_initial_ports(self):
     """Test initial ports amount
     """
     line = Line()
     self.assertEqual(1, len(line.ports()))
Esempio n. 4
0
def test_initial_ports():
    """Test initial ports amount."""
    canvas = Canvas()
    line = Line(canvas.connections)
    assert 1 == len(line.ports())