def test_1_2_3_4_6_returns_true(self):
     actual = first_last6([1, 2, 3, 4, 6])
     expected = True
     self.assertEqual(
         actual, expected,
         'Expected calling first_last6() with [1, 2, 3, 4, 6] to return "True"'
     )
 def test_1_2_3_4_returns_false(self):
     actual = first_last6([1, 2, 3, 4])
     expected = False
     self.assertEqual(
         actual, expected,
         'Expected calling first_last6() with [1, 2, 3, 4] to return "False"'
     )
def test3():
    assert(first_last6([2,6,1,2,6,8])) == False
def test2():
    assert(first_last6([6,1,2,6])) == True
def test1():
    assert(first_last6([1,2,6])) == True
 def test_5_5_returns_false(self):
     actual = first_last6([5, 5])
     expected = False
     self.assertEqual(
         actual, expected,
         'Expected calling first_last6() with [5, 5] to return "False"')
 def test_3_6_1_returns_false(self):
     actual = first_last6([3, 6, 1])
     expected = False
     self.assertEqual(
         actual, expected,
         'Expected calling first_last6() with [3, 6, 1] to return "False"')
def test2():
    assert (first_last6([6, 1, 2, 6])) == True
def test1():
    assert (first_last6([1, 2, 6])) == True
示例#10
0
def test3():
    assert (first_last6([2, 6, 1, 2, 6, 8])) == False