def test_creating_a_port_channel(self, t):
        enable(t)

        create_port_channel_interface(t, '1')
        configuring_port_channel(t, '1', 'description HELLO')
        configuring_port_channel(t, '1', 'switchport trunk encapsulation dot1q')
        configuring_port_channel(t, '1', 'switchport trunk native vlan 998')
        configuring_port_channel(t, '1', 'switchport trunk allowed vlan 6,4087-4089,4091,4093')
        configuring_port_channel(t, '1', 'switchport mode trunk')

        assert_interface_configuration(t, 'Port-channel1', [
            "interface Port-channel1",
            " description HELLO",
            " switchport trunk encapsulation dot1q",
            " switchport trunk native vlan 998",
            " switchport trunk allowed vlan 6,4087-4089,4091,4093",
            " switchport mode trunk",
            "end"
        ])

        t.write("show etherchannel summary")
        t.readln("Flags:  D - down        P - bundled in port-channel")
        t.readln("        I - stand-alone s - suspended")
        t.readln("        H - Hot-standby (LACP only)")
        t.readln("        R - Layer3      S - Layer2")
        t.readln("        U - in use      f - failed to allocate aggregator")
        t.readln("")
        t.readln("        M - not in use, minimum links not met")
        t.readln("        u - unsuitable for bundling")
        t.readln("        w - waiting to be aggregated")
        t.readln("        d - default port")
        t.readln("")
        t.readln("")
        t.readln("Number of channel-groups in use: 1")
        t.readln("Number of aggregators:           1")
        t.readln("")
        t.readln("Group  Port-channel  Protocol    Ports")
        t.readln("------+-------------+-----------+-----------------------------------------------")
        t.readln("1      Po1(S)          LACP      ")
        t.readln("")
        t.read("my_switch#")

        configuring(t, do="no interface port-channel 1")

        t.write("show run int po1")
        t.readln("\s*\^", regex=True)
        t.readln("% Invalid input detected at '^' marker.")
        t.readln("")
        t.read("my_switch#")