Пример #1
0
    def test_fullidentname( self ):
        ''' Ensure full identifier name works '''
        for mproj,fix in self.mprojs:
            fixrefs = fixtures.refs_for_fixture( fix )
            ref, idents = fixrefs.items()[0]
            ref = join(fix,'refs',ref)

            rf = reference_file_for_identifier( idents[0], mproj )
            eq_( ref, rf )
Пример #2
0
    def test_partialidentname( self ):
        for mproj,fix in self.mprojs:
            fixrefs = fixtures.refs_for_fixture( fix )
            ref, idents = fixrefs.items()[0]
            ref = join(fix,'refs',ref)

            # Ensure partial identifier name works
            rf = reference_file_for_identifier( idents[0][0:10], mproj )
            eq_( ref, rf )
Пример #3
0
    def test_notfound( self ):
        ''' Make sure none is returned when no ref file is found '''
        for mproj,fix in self.mprojs:
            fixrefs = fixtures.refs_for_fixture( fix )
            ref, idents = fixrefs.items()[0]
            ref = join(fix,'refs',ref)

            # Ensure partial identifier name works
            rf = reference_file_for_identifier( 'doesnotexist', mproj )
            eq_( None, rf )