Ejemplo n.º 1
0
 def test_value(self):
     assert 5 == listify(5)
Ejemplo n.º 2
0
 def test_string(self):
     s = "hello world"
     assert list(s) == listify(s)
Ejemplo n.º 3
0
 def test_none(self):
     l = None
     assert [] == listify(l)
Ejemplo n.º 4
0
 def test_set(self):
     s = {1, 2, 3}
     assert [1, 2, 3] == listify(s)
Ejemplo n.º 5
0
 def test_dict(self):
     d = {"a": 1, "b": 2, "c": 3}
     assert ["a", "b", "c"] == listify(d)
Ejemplo n.º 6
0
 def test_list(self):
     l = [1, 2, 3, 4]
     assert l == listify(l)