def testSeries(self):

        series = S3TimeSeriesEvent.series

        assertEqual = self.assertEqual

        # Explicit None should give {None}
        assertEqual(series(None), set([None]))

        # Single value should give {value}
        assertEqual(series(0), set([0]))
        assertEqual(series("A"), set(["A"]))

        # Empty list should give {None}
        assertEqual(series([]), set())
        assertEqual(series([[], []]), set())

        # List should give equivalent set
        assertEqual(series(["A", "B"]), set(["A", "B"]))
        assertEqual(series(["A", None]), set(["A", None]))
        assertEqual(series(["A", []]), set(["A"]))

        # Nested lists should be flattened
        assertEqual(series(["A", ["B", "C"]]), set(["A", "B", "C"]))
        assertEqual(series(["A", ["B", "A"]]), set(["A", "B"]))

    # -------------------------------------------------------------------------
Test series-method
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3timeplot.py/EventTests.testSeries