def METHOD_NAME(self):
    """Only remove vlans that are in allowed vlans list"""
    vlans_from_request = [2]
    old_trunked_vlans = [1, 2, 3]
    allowed_vlans = range(1, 3)
    self.assertEqual(
        filter_vlans(vlans_from_request, old_trunked_vlans, allowed_vlans), [2, 3]
    )