def test_formatter_lease(self): well = DataStructure() well.ID = 123 well.LeaseType = 'OL' # If there is no attribute in the object called 'LeaseID' use the ID attribute to format the lease string self.assertEqual(well._format.Lease, 'OL-0123') well.LeaseID = 1 # If there is an attribute in the object called 'LeaseID' use it to format the lease string self.assertEqual(well._format.Lease, 'OL-0001')
def test_formatter_lease(self): well = DataStructure() well.ID = 123 well.LeaseType = "OL" # If there is no attribute in the object called 'LeaseID' use the ID attribute to format the lease string self.assertEqual(well._format.Lease, "OL-0123") well.LeaseID = 1 # If there is an attribute in the object called 'LeaseID' use it to format the lease string self.assertEqual(well._format.Lease, "OL-0001")
def test_format_lease(self): """ This is the old way of formatting attributes and will be deprecated shortly: test_formatter_lease for the new way """ well = DataStructure() well.ID = 123 well.LeaseType = 'OL' # If there is no attribute in the object called 'LeaseID' use the ID attribute to format the lease string self.assertEqual(well.Lease, 'OL-0123') well.LeaseID = 1 # If there is an attribute in the object called 'LeaseID' use it to format the lease string self.assertEqual(well.Lease, 'OL-0001')
def test_format_lease(self): """ This is the old way of formatting attributes and will be deprecated shortly: test_formatter_lease for the new way """ well = DataStructure() well.ID = 123 well.LeaseType = "OL" # If there is no attribute in the object called 'LeaseID' use the ID attribute to format the lease string self.assertEqual(well.Lease, "OL-0123") well.LeaseID = 1 # If there is an attribute in the object called 'LeaseID' use it to format the lease string self.assertEqual(well.Lease, "OL-0001")