def testToOneOf( self ):
      cvtList = [ cvt.Converter( cvt.toType, float ),
                  cvt.Converter( cvt.toType, str ),
                ]
      converter = cvt.toOneOf

      s1 = "test"
      f1 = "1234"

      rs = s1
      rf = float( f1 )

      t = converter( s1, cvtList )
      self.assertEqual( rs, t, "Incorrect conversion of a string." )
      
      t = converter( f1, cvtList )
      self.assertEqual( rf, t, "Incorrect conversion of an Epoch." )
      
      self.assertRaises( Exception, converter, [ 1, 2 ], cvtList, name='value',
                   msg="List argument should be an error." )

#=======================================================================
This must be called before the given test is commenced.
dataset/ETHPy150Open nasa/mplStyle/mplStyle/types/convert/test/test_toOneOf.py/TesttoOneOf.testToOneOf--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/trial/reporter.py/TestResult.startTest