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