def testInsertOneConsultingChangeDescriptionAndIsOnlyOneConsulting(self): theConsulting123 = ConsultingRoom(key_name="123", description="Consultorio123", identification="123") theConsulting123.put() theConsulting123 = ConsultingRoom.get_by_key_name(theConsulting123.identification) theConsulting123.description = "Nueva descripcion" theConsulting123.put() self.assertEqual(1, len(ConsultingRoom.all().fetch(None)))
def testInsertOneConsultingAndChangeDescription(self): theConsulting123 = ConsultingRoom(key_name="123", description="Consultorio123", identification="123") theConsulting123.put() theConsulting123 = ConsultingRoom.get_by_key_name(theConsulting123.identification) theConsulting123.description = "Nueva descripcion" theConsulting123.put() theConsulting123 = ConsultingRoom.get_by_key_name(theConsulting123.identification) self.assertEqual("Nueva descripcion", theConsulting123.description)