def test_command_assign_access_vlan_to_port(self, t):
        enable(t)
        create_vlan(t, "123")
        set_interface_on_vlan(t, "FastEthernet0/1", "123")

        assert_interface_configuration(t, "Fa0/1", [
            "interface FastEthernet0/1",
            " switchport access vlan 123",
            " switchport mode access",
            "end"])

        configuring_interface(t, "FastEthernet0/1", do="no switchport access vlan")

        assert_interface_configuration(t, "Fa0/1", [
            "interface FastEthernet0/1",
            " switchport mode access",
            "end"])

        configuring_interface(t, "FastEthernet0/1", do="no switchport mode access")

        assert_interface_configuration(t, "Fa0/1", [
            "interface FastEthernet0/1",
            "end"])

        remove_vlan(t, "123")