def test_resource_create(self): ''' test that the resource factory methods work ''' cake1 = CollectionResource.random(5) cake2 = CollectionResource.random(5) cake3 = CollectionResource.random() self.assertEqual(cake1.actual_value(), cake2.actual_value()) self.assertNotEqual(cake1.value, cake2.value) self.assertNotEqual(cake1.value, cake3.value)