def test_tenths_version(self): """Test the filter that turns 1.2.3 into 1.2.""" eq_(_tenths_version("1.2.3beta3"), "1.2") eq_(_tenths_version("1.2rc"), "1.2") eq_(_tenths_version("1.w"), "")
def test_tenths_version(self): """Test the filter that turns 1.2.3 into 1.2.""" eq_(_tenths_version('1.2.3beta3'), '1.2') eq_(_tenths_version('1.2rc'), '1.2') eq_(_tenths_version('1.w'), '')