Exemplo n.º 1
0
 def test_list(self):
     self.assertListEqual(utils.maybe_list([1, 2, 3]), [1, 2, 3])
Exemplo n.º 2
0
 def _mkey_prefixed(self, names):
     mkey = [self.prefix + key for key in maybe_list(names)]
     return ":".join(mkey)
Exemplo n.º 3
0
 def test_None(self):
     self.assertListEqual(utils.maybe_list(None), [])
Exemplo n.º 4
0
 def test_value(self):
     self.assertListEqual(utils.maybe_list(1), [1])
Exemplo n.º 5
0
 def test_list(self):
     self.assertListEqual(utils.maybe_list([1, 2, 3]), [1, 2, 3])
Exemplo n.º 6
0
 def test_None(self):
     self.assertListEqual(utils.maybe_list(None), [])
Exemplo n.º 7
0
 def test_value(self):
     self.assertListEqual(utils.maybe_list(1), [1])