def test_card_feeding_last(self): data = cards.card_feeding_last(self.context, self.child) self.assertEqual(data["type"], "feeding") self.assertFalse(data["empty"]) self.assertFalse(data["hide_empty"]) self.assertIsInstance(data["feeding"], models.Feeding) self.assertEqual(data["feeding"], models.Feeding.objects.first())
def test_card_feeding_last_method(self): data = cards.card_feeding_last(self.child) self.assertEqual(data['type'], 'feeding') self.assertIsInstance(data['feeding'], models.Feeding) self.assertEqual( data['feeding'].method, models.Feeding.objects.first().method)
def test_card_feeding_last(self): data = cards.card_feeding_last(self.context, self.child) self.assertEqual(data['type'], 'feeding') self.assertFalse(data['empty']) self.assertFalse(data['hide_empty']) self.assertIsInstance(data['feeding'], models.Feeding) self.assertEqual(data['feeding'], models.Feeding.objects.first())