tests package

Submodules

tests.test_drawlotto module

class tests.test_drawlotto.DrawLottoTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test the lotto draw with some input numbers

setUp()[source]

Init class pylotto.drawlotto

Returns:none
test_draw()[source]

test draw without a additional number

Returns:none
test_draw_addit()[source]

test draw with a additional number

Returns:none
test_draw_addit_sep()[source]

test draw with a separate additional number

Returns:none
test_drawone()[source]

test draw one number without a additional number

Returns:none
test_drawthree()[source]

test draw three number without a additional number

Returns:none
test_drawtwo()[source]

test draw two number without a additional number

Returns:none
test_drawzero()[source]

test set draw to no number and make sure to set to one number

Returns:none
test_setting()[source]

Test lotto.data

Returns:none

tests.test_lottosettingdialog module

Test the dialog module

lottosettingdialog

Setup for testing, create the UI_lottosystem.py file:

cd dialog/ pyuic4 –output UI_lottosystem.py lottosystem.ui
class tests.test_lottosettingdialog.LottoSystemDataTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test of drawing

setUp()[source]

Creates the QApplication instance

Returns:none
tearDown()[source]

Deletes the reference owned by self

Returns:none
test_dialog()[source]

test

tests.test_lottosystemdata module

Testcase for module pylottosimu.lottosystemdata

class tests.test_lottosystemdata.TestCodeFormat(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test the code format of the file

setUp()[source]

load LottoSystemData

Returns:
test_readfile()[source]

read the lottosystems.json file

tests.test_show_drawing module

Test the dialog module show_drawing

class tests.test_show_drawing.ShowDrawingTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test of drawing

setUp()[source]

Creates the QApplication instance

tearDown()[source]

Deletes the reference owned by self

test_ballnumber()[source]

test with one ball numbers

test_bonusnumbers()[source]

test ball numbers and bonus numbers in a maximal draw of 5 numbers

test_bonusnumbersseparate()[source]

test separate bonus numbers

Returns:none
test_highernumbers()[source]

test with higher draw numbers as the highest number in the draw in the ball numbers and in the bonus numbers

Returns:none
test_samenumbers()[source]

test the same ball numbers and bonus numbers in a maximal draw of 5 numbers

Returns:none
test_twoballnumber()[source]

test with two ball numbers

Module contents

test case