def test_sequence(self): self.assertEqual(_to_list(x for x in 'cats'), ['c', 'a', 't', 's'])
def test_list(self): self.assertEqual(_to_list([1, 2, 3]), [1, 2, 3])
def test_tuple(self): self.assertEqual(_to_list(('one', 'two')), ['one', 'two'])
def test_str(self): self.assertEqual(_to_list('efgh'), ['efgh'])
def test_int(self): self.assertEqual(_to_list(1), [1])
def test_None(self): self.assertEqual(_to_list(None), [None])
def test_bytes(self): self.assertEqual(_to_list(b'abcd'), [b'abcd'])