Beispiel #1
0
 def test_CreateAllObjectsFromObjectMother(self):
     p = PackageObjectMother.CreatePackageNoPickupsNoReturn()
     p = PackageObjectMother.CreatePackageManyPickupNoReturn()
     p = PackageObjectMother.CreatePackageManyPickupPackedNoReturn()
     p = PackageObjectMother.CreateDeliveredPackageManyPickupPackedNoReturn(
     )
     p = PackageObjectMother.CreatePackageManyPickupPackedUnconfirmedReturn(
     )
     p = PackageObjectMother.CreatePackageManyPickupPackedConfirmedReturn()
     p = PackageObjectMother.CreateUnpackedPickups()
     p = PackageObjectMother.CreatePackedPickups()
     p = PackageObjectMother.CreateUnconfirmedReturn()
     p = PackageObjectMother.CreateConfirmedReturn()
Beispiel #2
0
    def test_AcceptReturn(self):
        return_ = PackageObjectMother.CreateUnconfirmedReturn()

        return_.Accept()

        self.assertEqual(return_.Accepted, True)
Beispiel #3
0
    def test_ChangeReturnDescription(self):
        return_ = PackageObjectMother.CreateUnconfirmedReturn()

        return_.Description = "qwerty"

        self.assertEqual(return_.Description, "qwerty")