title: assertion test for program that checks if a list is a sublist from another list
body: <p>I Have written a small program that should check if a given list is a sublist from another list and returns with <code>True</code> or <code>False</code>:</p>
  
  <pre><code>def is_sublist_of(sublist, given):
      """ Returns whether the sublist is part of the given combination.
      The order of the sublist must also correspond to the order of the
      corresponding part in the given combination."""
  
      return sublist in [given[i:i+len(sublist)] for i in range(0,len(given)-len(sublist))]
  </code></pre>
  
  <p>This code is part of an assignment I have to do but one of the given asserts is:</p>
  
  <pre><code>simple_list = [1, 2, 3, 4]
  for element in simple_list:
      assert is_sublist_of([element], simple_list)
  assert not is_sublist_of([5], simple_list)
  </code></pre>
  
  <p>And my program fails this test. Does this mean that my program doesn't work in some special cases? Thank you for looking into this.</p>