Example #1
0
 def test_no_sevens(self):
     self.assertEqual(False, sevens_in_a_row([1, 2, 3, 4, 5] , 1))
Example #2
0
 def test_four(self):
     self.assertEqual(True, sevens_in_a_row([7, 2, 1, 6, 2], 1))
Example #3
0
 def test_two(self):
     self.assertEqual(False, sevens_in_a_row([1, 7, 1, 7, 7], 4))
Example #4
0
 def test_three(self):
     self.assertEqual(True, sevens_in_a_row([7, 7, 7, 1, 1, 1, 7, 7, 7, 7], 3))
Example #5
0
 def test_one(self):
     self.assertEqual(True, sevens_in_a_row([10, 8, 7, 6, 7, 7, 7, 20, -7], 3))