def test_partition(self):
     self.assertEqual(('foo', ':', 'bar'), _partition('foo:bar', ':'))
     self.assertEqual(('foobar', '', ''), _partition('foobar', ':'))
Exemplo n.º 2
0
 def test_partition(self):
     self.assertEqual(('foo', ':', 'bar'), _partition('foo:bar', ':'))
     self.assertEqual(('foobar', '', ''), _partition('foobar', ':'))
 def test_partition(self):
     self.assertEqual(("foo", ":", "bar"), _partition("foo:bar", ":"))
     self.assertEqual(("foobar", "", ""), _partition("foobar", ":"))