def test_width_returns_X_if_string(self): result = tables._height("100") self.assertEqual(result, 100.0)
def test_width_returns_values_passed_if_string_and_ends_with_percent(self): result = tables._height("100%") self.assertEqual(result, "100%")
def test_width_will_convert_string_to_float_if_string_passed_in_doesnt_end_with_percent(self): result = tables._height("100") self.assertEqual(type(result), float)
def test_width_returns_none_if_value_passed_is_none(self): result = tables._height(None) self.assertEqual(result, None)
def test_width_will_convert_string_to_float_if_string_passed_in_doesnt_end_with_percent( self): result = tables._height("100") self.assertEqual(type(result), float)