Exemplo n.º 1
0
def test_bytestring_to_tar_tuple():
    path = '/foo/bar/baz'
    bytestring = 'foobar'
    filestore.bytestring_to_tar_tuple(path, bytestring)

    bytestring = u'foobar€€€'.encode('UTF-8')
    filestore.bytestring_to_tar_tuple(path, bytestring)
Exemplo n.º 2
0
def test_bytestring_to_tar_tuple():
    path = '/foo/bar/baz'
    bytestring = b'foobar'
    filestore.bytestring_to_tar_tuple(path, bytestring)

    bytestring = u'foobar€€€'.encode('UTF-8')
    filestore.bytestring_to_tar_tuple(path, bytestring)
Exemplo n.º 3
0
def test_unicode_to_tar_tuple():
    path = '/foo/bar/baz'
    accidental_unicode = u'foobar€€€'
    filestore.bytestring_to_tar_tuple(path, accidental_unicode)
Exemplo n.º 4
0
def test_unicode_to_tar_tuple():
    path = '/foo/bar/baz'
    string_containing_unicode = u'foobar€€€'
    filestore.bytestring_to_tar_tuple(
        path, string_containing_unicode.encode('utf-8'))