def test_lengths_given_1_ft_and_5_ft_should_compare_and_return_false(self): self.assertFalse(QuantityMeasurement().compare_length( "ft", "ft", 1, 5))
def test_pass_check_for_value_when_not_equal_should_return_false( self, quantity_measurement_object): quantity_measurement_object.get_measurement(Quantity.FEETTOINCH, 1) quantity_object = QuantityMeasurement() quantity_object.get_measurement(Quantity.FEETTOINCH, 2) assert quantity_measurement_object.equals(quantity_object) == False
def test_lengths_given_1_in_and_1_yd_should_compare_and_return_false(self): self.assertFalse(QuantityMeasurement().compare_length( "in", "yd", 1, 1))
def test_lengths_given_36_in_and_1_yd_should_compare_and_return_true(self): self.assertTrue(QuantityMeasurement().compare_length( "in", "yd", 36, 1))
def test_lengths_given_0_ft_and_0_ft_should_compare_and_return_true(self): self.assertTrue(QuantityMeasurement().compare_length("ft", "ft", 0, 0))
def test_lengths_given_1_5_ft_and_18_in_should_compare_and_return_true( self): self.assertTrue(QuantityMeasurement().compare_length( "ft", "in", 1.5, 18))
def test_lengths_given_12_in_and_1_ft_should_compare_and_return_true(self): self.assertTrue(QuantityMeasurement().compare_length( "in", "ft", 12, 1))
def test_lengths_given_5_ft_and_5_ft_should_return_not_none(self): self.assertIsNotNone(QuantityMeasurement().compare_length( "ft", "ft", 5, 5))
def quantity_measurement_object(): quantity_object = QuantityMeasurement() return quantity_object