def test_tags(self):
        value = self.sd.tags()
        self.assertTrue(isinstance(value, six.string_types))

        value = self.sd.tags(5, 5)
        self.assertEqual(len(value.split(',')), 5)

        value = self.sd.tags(5, 5, ['a', 'b', 'c'])
        self.assertTrue(value.split(',')[0] in ['a', 'b', 'c'])

        with self.assertRaises(ParameterError):
            value = self.sd.tags(10, 5)
dataset/ETHPy150Open kaleidos/django-sampledatahelper/tests/tests.py/TestTextHelpers.test_tags/original