File: comment.py

package info (click to toggle)
pyvorbis 1.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 252 kB
  • ctags: 263
  • sloc: ansic: 2,337; python: 535; makefile: 46
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()