tingTes Flashcards

1
Q

What are unit tests?

A

Unit tests check that small bits of code are correctly implemented

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a keyword that can be used to facilitate unit tests?

A

assert

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What gets printed to the console if a unit test with assert is true?

A

nothing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an example of a testing harness in Python?

A

the unittest module

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What method is used to test equal in the test module?

A

test.testEqual()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the 3 types of tests?

A

unit
integration
load

How well did you know this?
1
Not at all
2
3
4
5
Perfectly