Beispiel #1
0
    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)
Beispiel #2
0
 def test_create_info(self):
     """ Creates a Info object """
     form = InfoForm(data = INFO_DATA)
     self.assert_(form.is_valid() == True)