Exemple #1
0
 def test_Lineup(self):
     import lineup
     self.assertTrue(lineup.main('year', 'year', args='verbose=0') is None)
     self.assertTrue(
         lineup.main('year',
                     'year',
                     args='year=1960 region=U hidden=1 submit=1') is None)
     self.assertTrue(
         lineup.main('year',
                     'year',
                     args='year=1971 region=U nyears=2 submit=1') is None)
     self.assertTrue(
         lineup.main('year', 'year', args='year=1984 region=B submit=1') is
         None)
     self.assertTrue(
         lineup.main('year', 'year', args='year=1988 region=D submit=1') is
         None)
     self.assertTrue(
         lineup.main('year', 'year', args='year=1991 region=A submit=1') is
         None)
     self.assertTrue(
         lineup.main('year',
                     'year',
                     args='year=1997 region=L unroll=1 submit=1') is None)
     self.assertTrue(
         lineup.main('year',
                     'year',
                     args='year=1999 region=D large=1 submit=1') is None)
     self.assertTrue(
         lineup.main('year', 'year', args='year=2000 region=A submit=1') is
         None)
     self.assertTrue(
         lineup.main('year',
                     'year',
                     args='year=2006 region=A unroll=1 hidden=1 submit=1')
         is None)
     self.assertTrue(
         lineup.main('year',
                     'year',
                     args='year=2013 region=U submit=1 verbose=1') is None)
     pif = basics.get_page_info('editor', args="verbose=0")
     #self.assertTrue(lineup.text_main(pif) != '')
     #self.assertTrue(lineup.picture_count(pif, 'U', 2012) != None)
     self.assertTrue(
         lineup.main(
             'year',
             'year',
             args='n=1 num=5 syear=1971 region=U enum= eyear=1980 submit=1')
         is None)
     self.assertTrue(
         lineup.main(
             'year',
             'year',
             args=
             'n=1 num=5 syear=1971 region=U prodpic=1 enum=15 eyear=1980 submit=1'
         ) is None)
Exemple #2
0
def main(pif):
    pif = basics.get_page_info('editor')

    count = 0
    count += count_from_file('src/coll43.dat', 'm', 2, config.IMG_DIR_COLL_43)
    count += count_from_file('src/coll72.dat', 'm', 2, config.IMG_DIR_COLL_43)
    count += count_from_file('src/coll18.dat', 'm', 2, config.IMG_DIR_COLL_43)
    count += count_box(pif)
    count += count_directory(config.IMG_DIR_PROD_SERIES)
    count += count_directory(config.IMG_DIR_ACC)
    count += count_directory(config.IMG_DIR_BLISTER)
    count += count_directory(config.IMG_DIR_PROD_CODE_2)
    count += count_directory(config.IMG_DIR_PROD_COLL_64)
    count += count_html(config.IMG_DIR_ADS + '/index.php')
    count += count_html(config.IMG_DIR_ERRORS + '/index.html')
    count += count_lineups(pif)
    count += count_man(pif)
    count += count_var(pif)
    count += count_pack(pif)
    count += count_pub(pif)

    print()
    report('total', count)
Exemple #3
0
def main(pif):
    pif = basics.get_page_info('editor')

    count = 0
    count += count_from_file('src/coll43.dat', 'm', 2, config.IMG_DIR_COLL_43)
    count += count_from_file('src/coll72.dat', 'm', 2, config.IMG_DIR_COLL_43)
    count += count_from_file('src/coll18.dat', 'm', 2, config.IMG_DIR_COLL_43)
    count += count_box(pif)
    count += count_directory(config.IMG_DIR_PROD_SERIES)
    count += count_directory(config.IMG_DIR_ACC)
    count += count_directory(config.IMG_DIR_BLISTER)
    count += count_directory(config.IMG_DIR_PROD_CODE_2)
    count += count_directory(config.IMG_DIR_PROD_COLL_64)
    count += count_html(config.IMG_DIR_ADS + '/index.php')
    count += count_html(config.IMG_DIR_ERRORS + '/index.html')
    count += count_lineups(pif)
    count += count_man(pif)
    count += count_var(pif)
    count += count_pack(pif)
    count += count_pub(pif)

    print
    report('total', count)
Exemple #4
0
    def setUp(self):
	self.pif = basics.get_page_info('year.1953', args="verbose=0")
Exemple #5
0
 def setUp(self):
     self.pif = basics.get_page_info('matrix.matchcaps', args="verbose=0")
     self.pif.render.verbose = True
     self.pif.render.verbose = False
Exemple #6
0
 def setUp(self):
     self.pif = basics.get_page_info('editor')
Exemple #7
0
    def setUp(self):
	self.pif = basics.get_page_info('matrix.matchcaps', args="verbose=0")
	self.pif.render.verbose = True
	self.pif.render.verbose = False
Exemple #8
0
 def setUp(self):
     self.pif = basics.get_page_info('year.1953', args="verbose=0")
Exemple #9
0
    def setUp(self):
	self.pif = basics.get_page_info('editor')