def test_collection_is_constructed(self):
    c = Collection('foo')
    self.assertEqual(['foo'], c.all())
    c = Collection(2)
    self.assertEqual([2], c.all())
    c = Collection(False)
    self.assertEqual([False], c.all())
    c = Collection(None)
    self.assertEqual([], c.all())
    c = Collection()
    self.assertEqual([], c.all())
def test_collection_is_constructed(self):
    c = Collection('foo')
    self.assertEqual(['foo'], c.all())
    c = Collection(2)
    self.assertEqual([2], c.all())
    c = Collection(False)
    self.assertEqual([False], c.all())
    c = Collection(None)
    self.assertEqual([], c.all())
    c = Collection()
    self.assertEqual([], c.all())