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