Example #1
0
 def test_tostrlistValidComma(self):
     out = machinestate.tostrlist("a,b,c")
     self.assertEqual(out, ["a", "b", "c"])
Example #2
0
 def test_tostrlistValidTabs(self):
     out = machinestate.tostrlist("a\tb\tc")
     self.assertEqual(out, ["a", "b", "c"])
Example #3
0
 def test_tostrlistInt(self):
     out = machinestate.tostrlist(1)
     self.assertEqual(out, ["1"])
Example #4
0
 def test_tostrlistValidSpaces(self):
     out = machinestate.tostrlist("a b c")
     self.assertEqual(out, ["a", "b", "c"])
Example #5
0
 def test_tostrlistNone(self):
     out = machinestate.tostrlist(None)
     self.assertEqual(out, None)