예제 #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