Пример #1
0
 def test_9_and_true_returns_false(self):
     actual = in1to10(9, True)
     expected = False
     self.assertEqual(
         actual, expected,
         'Expected calling in1to10() with 9 and True to return "False"')
Пример #2
0
 def test_1_and_false_returns_true(self):
     actual = in1to10(1, False)
     expected = True
     self.assertEqual(
         actual, expected,
         'Expected calling in1to10() with 1 and False to return "True"')
Пример #3
0
def test_OutRange_TrueLower():
	assert in1to10(-15, True) == True
Пример #4
0
def test_base3():
	assert in1to10(11, True) == True
Пример #5
0
def test_inRange_False():
	assert in1to10(5, False) == True
Пример #6
0
def test_OutRange_True15():
	assert in1to10(15, True) == True
Пример #7
0
def test_lowBoundry_False0():
	assert in1to10(0, False) == False
Пример #8
0
 def test_negative_1_and_true_returns_true(self):
     actual = in1to10(-1, True)
     expected = True
     self.assertEqual(
         actual, expected,
         'Expected calling in1to10() with -1 and True to return "True"')
Пример #9
0
def test_HighBoundry_True9():
	assert in1to10(9, True) == False
Пример #10
0
def test_lowBoundry_False():
	assert in1to10(1, False) == True
Пример #11
0
def test_HighBoundry_True():
	assert in1to10(10, True) == True
Пример #12
0
def test_lowBoundry_True2():
	assert in1to10(2, True) == False
Пример #13
0
def test_lowBoundry_True():
	assert in1to10(1, True) == True
Пример #14
0
 def test_0_and_true_returns_true(self):
     actual = in1to10(0, True)
     expected = True
     self.assertEqual(
         actual, expected,
         'Expected calling in1to10() with 0 and True to return "True"')
Пример #15
0
def test_HighBoundry_False():
	assert in1to10(10, False) == True
Пример #16
0
 def test_negative_1_and_false_returns_false(self):
     actual = in1to10(-1, False)
     expected = False
     self.assertEqual(
         actual, expected,
         'Expected calling in1to10() with -1 and False to return "False"')
Пример #17
0
def test_HighBoundry_False11():
	assert in1to10(11, False) == False
Пример #18
0
 def test_99_and_false_returns_false(self):
     actual = in1to10(99, False)
     expected = False
     self.assertEqual(
         actual, expected,
         'Expected calling in1to10() with 99 and False to return "False"')
Пример #19
0
def test_inRange_True():
	assert in1to10(5, True) == False