'Test handling of flag lists'

@mock.patch.object(tee, '_c_tee')
def test_flags_list(self, mock_tee):

    tee(1, 2, 3, [(splice.SPLICE_F_MOVE | splice.SPLICE_F_NONBLOCK)])
    flags = (splice.SPLICE_F_MOVE | splice.SPLICE_F_NONBLOCK)
    self.assertEqual(mock_tee.call_args, ((1, 2, 3, flags), {}))
    mock_tee.reset_mock()
    tee(1, 2, 3, [])
    self.assertEqual(mock_tee.call_args, ((1, 2, 3, 0), {}))
