'The ``direction`` argument must be one of ``DOWNLOAD`` or ``UPLOAD``.'

def test_invalid_direction(self):

    invalid_direction = random_name(self)
    exception = self.assertRaises(ValueError, scp, reactor=object(), username=u'Joe', host=u'example.com', remote_path=self.make_temporary_path(), local_path=self.make_temporary_path(), direction=invalid_direction)
    self.assertIn(invalid_direction, unicode(exception))
