def to_right_url(self): """ Process the conversion to the right URL. """ if Version.is_local_dev(): return self.data_to_convert.replace("master", "dev") return self.data_to_convert.replace("dev", "master")
def test_is_not_local_dev(self): """ Tests if the local version is the not the dev one. """ expected = False actual = Version.is_local_dev() self.assertEqual(expected, actual)