def test_initial_ports(revert_undo): """Test initial ports amount. """ line = Line() assert 1 == len(line.ports())
def test_initial_ports(self): """Test initial ports amount """ line = Line() self.assertEquals(1, len(line.ports()))
def test_initial_ports(self): """Test initial ports amount """ line = Line() self.assertEqual(1, len(line.ports()))
def test_initial_ports(): """Test initial ports amount.""" canvas = Canvas() line = Line(canvas.connections) assert 1 == len(line.ports())