Beispiel #1
0
 def test_awesome_flavour(self):
     """
     Tests that 'chocolate' + '&' + 'honey' always equals 'chocolate&honey'.
     """
     c = CandyOwnModels()
     chocolate = c.no_model_here_but_an_string()
     self.assertEqual(chocolate + '&' + 'honey', 'chocolate&honey')
Beispiel #2
0
 def test_basic_flavour(self):
     """
     Tests that 5 + 1 always equals 6.
     """
     c = CandyOwnModels()
     six = c.no_model_here_but_an_int()
     self.assertEqual(5 + 1, six)