def test_interleaves_prefix(self): res = sut.prefix_with(0, [1, 2, 3]) self.assertListEqual([0, 1, 0, 2, 0, 3], res)
def test_gives_empty_on_empty(self): res = sut.prefix_with(0, []) self.assertFalse(res)