示例#1
0
    def test_getFilesByWildcard(self):
        dbu = DBUpdate()
        # FIXME TODO Not sure what this function is meant to do
        fname = dbu.getFilesByWildcard(
            "/Users/andrew/Games/Emulation/SNES/Chrono Trigger (USA).zip")
        print("fname is {0}".format(fname))

        a = FileType()
        a.id, a.name, a.parent = 0, "rcb_rom", "game"
        print(a)
示例#2
0
    def test_getFilesByGameNameIgnoreCase(self):
        """
        /Users/andrew/Games/Emulation/SNES/Artwork/fanart/Madden NFL 97.*
        /Users/andrew/Games/Emulation/SNES/Artwork/fanart/SNES.*
        /Users/andrew/Games/Emulation/SNES/Artwork/fanart/Madden NFL '97 (USA).*
        Returns:

        """

        dbu = DBUpdate()
        fname = dbu.getFilesByWildcard(
            "/Users/user/Games/Emulation/SNES/Chrono Trigger (USA).*")
        print "test_getFilesByGameNameIgnoreCase"
        print fname