def save(self): data = self.cleaned_data nom = data['nom'] uv = data['uv'] addData.addModule(nom, uv)
def module(self): repo = addModule(self.puser, "uv", choice(self.uvs)) self.assertFalse(type(repo) is str) self.modules = [repo] repo3 = addModule(self.puser, "uv", choice(self.uvs)) self.assertTrue(type(repo3) is str)