File: comment.py

package info (click to toggle)
pyvorbis 1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 304 kB
  • ctags: 268
  • sloc: ansic: 2,424; python: 530; sh: 335; makefile: 63
file content (18 lines) | stat: -rw-r--r-- 319 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/python

from ogg.vorbis import VorbisComment

def test():
    x = VorbisComment()
    x['hey'] = 'you'
    x['me'] = 'them'
    x['hEy'] = 'zoo'
    x['whee'] = 'them'
    x['Hey'] = 'boo'
    
    del x['hey']
    try:
        print x['hey'] # should fail
        assert(0)
    except KeyError: pass
test()