예제 #1
0
 def test_with_value(self):
     result = parsers.parse_colon_separated(['foo:bar'])
     self.assertEquals(result, [['foo', 'bar']])
예제 #2
0
 def test_with_multiple_colon(self):
     result = parsers.parse_colon_separated(['foo:bar:baz'])
     self.assertEquals(result, [['foo:bar', 'baz']])
예제 #3
0
 def test_with_none(self):
     result = parsers.parse_colon_separated(None)
     self.assertEquals(result, [])
예제 #4
0
 def test_with_value(self):
     result = parsers.parse_colon_separated(['foo:bar'])
     self.assertEquals(result, [['foo', 'bar']])
예제 #5
0
 def test_with_multiple_colon(self):
     result = parsers.parse_colon_separated(['foo:bar:baz'])
     self.assertEquals(result, [['foo:bar', 'baz']])
예제 #6
0
 def test_with_none(self):
     result = parsers.parse_colon_separated(None)
     self.assertEquals(result, [])