def test_multiple_info(self): """ Tries to add two different infos """ info = Info(**INFO_DATA) info.save() form = InfoForm(data = INFO_DATA) self.assert_(form.is_valid() == False)
def test_create_info(self): """ Creates a Info object """ form = InfoForm(data = INFO_DATA) self.assert_(form.is_valid() == True)