tests package

Submodules

tests.test_drawlotto module

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

Bases: unittest.case.TestCase

Test the lotto draw with some input numbers

setUp()[Quellcode]

Init class pylotto.drawlotto

Rückgabe:none
test_draw()[Quellcode]

test draw without a additional number

Rückgabe:none
test_draw_addit()[Quellcode]

test draw with a additional number

Rückgabe:none
test_draw_addit_sep()[Quellcode]

test draw with a separate additional number

Rückgabe:none
test_drawone()[Quellcode]

test draw one number without a additional number

Rückgabe:none
test_drawthree()[Quellcode]

test draw three number without a additional number

Rückgabe:none
test_drawtwo()[Quellcode]

test draw two number without a additional number

Rückgabe:none
test_drawzero()[Quellcode]

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

Rückgabe:none
test_setting()[Quellcode]

Test lotto.data

Rückgabe: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')[Quellcode]

Bases: unittest.case.TestCase

Test of drawing

setUp()[Quellcode]

Creates the QApplication instance

Rückgabe:none
tearDown()[Quellcode]

Deletes the reference owned by self

Rückgabe:none
test_dialog()[Quellcode]

test

tests.test_lottosystemdata module

Testcase for module pylottosimu.lottosystemdata

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

Bases: unittest.case.TestCase

Test the code format of the file

setUp()[Quellcode]

load LottoSystemData

Rückgabe:
test_readfile()[Quellcode]

read the lottosystems.json file

tests.test_show_drawing module

Test the dialog module show_drawing

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

Bases: unittest.case.TestCase

Test of drawing

setUp()[Quellcode]

Creates the QApplication instance

tearDown()[Quellcode]

Deletes the reference owned by self

test_ballnumber()[Quellcode]

test with one ball numbers

test_bonusnumbers()[Quellcode]

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

test_bonusnumbersseparate()[Quellcode]

test separate bonus numbers

Rückgabe:none
test_highernumbers()[Quellcode]

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

Rückgabe:none
test_samenumbers()[Quellcode]

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

Rückgabe:none
test_twoballnumber()[Quellcode]

test with two ball numbers

Module contents

test case