Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(23)  |  Call(20)  |  Derive(0)  |  Import(3)

src/m/p/mp3hash-0.1/tests/unit/test_id3v2.py   mp3hash(Download)
from hamcrest import assert_that, is_
 
from mp3hash import TaggedFile, ID3V2_HEADER_SIZE, ID3V2_FOOTER_SIZE
 
 
    def test_detects_id3v2_tags(self):
        file = StringIO(TAGGED)
 
        tagged = TaggedFile(file)
 
    def test_detects_id3v2_tags_even_with_content(self):
        file = StringIO(TAGGED_AND_FILLED)
 
        tagged = TaggedFile(file)
 
    def test_detects_when_there_is_no_id3v1_tag(self):
        file = StringIO(NOT_TAGGED)
 
        tagged = TaggedFile(file)
 
    def test_says_there_is_no_tag_when_file_is_too_small(self):
        file = StringIO()
 
        tagged = TaggedFile(file)
 

src/m/p/mp3hash-0.1/tests/unit/test_id3v1_extended.py   mp3hash(Download)
from hamcrest import assert_that, is_
 
from mp3hash import TaggedFile, ID3V1_SIZE, ID3V1_EXTENDED_SIZE
 
 
    def test_detects_id3v1_extended_tags(self):
        file = StringIO(MP3_ID3v1_EXT_TAGGED)
 
        tagged = TaggedFile(file)
 
    def test_detects_id3v1_tags_even_with_content(self):
        file = StringIO(MP3_ID3v1_EXT_TAGGED_AND_FILLED)
 
        tagged = TaggedFile(file)
 
    def test_detects_when_there_is_no_id3v1_tag(self):
        file = StringIO(MP3_ID3v1_EXT_NOT_TAGGED)
 
        tagged = TaggedFile(file)
 
    def test_says_there_is_no_tag_when_file_is_too_small(self):
        file = StringIO()
 
        tagged = TaggedFile(file)
 

src/m/p/mp3hash-0.1/tests/unit/test_id3v1.py   mp3hash(Download)
from hamcrest import assert_that, is_
 
from mp3hash import TaggedFile, ID3V1_SIZE
 
 
    def test_detects_id3v1_tags(self):
        file = StringIO(MP3_ID3v1_TAGGED)
 
        tagged = TaggedFile(file)
 
    def test_detects_id3v1_tags_even_with_content(self):
        file = StringIO(MP3_ID3v1_TAGGED_AND_FILLED)
 
        tagged = TaggedFile(file)
 
    def test_detects_when_there_is_no_id3v1_tag(self):
        file = StringIO(MP3_ID3v1_NOT_TAGGED)
 
        tagged = TaggedFile(file)
 
    def test_says_there_is_no_tag_when_file_is_too_small(self):
        file = StringIO()
 
        tagged = TaggedFile(file)