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