def test_pop_removes_and_returns_last_item_or_specified_index(self):
    c = Collection(['foo', 'bar'])
    self.assertEqual('bar', c.pop())
    self.assertEqual('foo', c.last())
    c = Collection(['foo', 'bar'])
    self.assertEqual('foo', c.pop(0))
    self.assertEqual('bar', c.first())
def test_pop_removes_and_returns_last_item_or_specified_index(self):
    c = Collection(['foo', 'bar'])
    self.assertEqual('bar', c.pop())
    self.assertEqual('foo', c.last())
    c = Collection(['foo', 'bar'])
    self.assertEqual('foo', c.pop(0))
    self.assertEqual('bar', c.first())