Did I find the right examples for you? yes no

All Samples(26)  |  Call(26)  |  Derive(0)  |  Import(0)

src/t/i/TicketTracker-HEAD/storyparser/tests/parser_tests.py   TicketTracker(Download)
	def test_django_story_to_text_existing_tags(self):
		dstory = wm.Story(title = "story_title", story_description = "story_description")
		dtask = wm.Task(description = "task description [#abc]")
		res = converter.Converter.django_story_to_text(dstory, [dtask])	
		self.assertEqual(res, "=story_title\nstory_description\n-task description [#abc]\n")
	def test_django_story_to_text(self):
		dstory = wm.Story(title = "story_title", story_description = "story_description")
		res = converter.Converter.django_story_to_text(dstory, [])	
		self.assertEqual(res, "=story_title\nstory_description\n")
 
	def test_text_to_django_story_crlf(self):
		# here we check if CRLF gets correctly handled (converted to only LF before parsing)
		story_text = "= a\r\nb"
		dstory = wm.Story(title = " a", story_description = "b")
		(rstory, rtasks) = converter.Converter.text_to_django_story(story_text)	
	def test_text_to_django_story_crlf(self):
		# here we check if CRLF gets correctly handled (converted to only LF before parsing)
		story_text = "= a\r\nb\n\n-c\n\n"
		dstory = wm.Story(title = " a", story_description = "b\n")
		(rstory, rtasks) = converter.Converter.text_to_django_story(story_text)	
	def test_text_to_django_story(self):
		story_text = "= a\nb"
		dstory = wm.Story(title = " a", story_description = "b")
		(rstory, rtasks) = converter.Converter.text_to_django_story(story_text)	
		compare_django_stories(self, rstory, dstory)		

src/t/i/TicketTracker-HEAD/web/views.py   TicketTracker(Download)
		raise Http404
 
	story_new = models.Story()
	story_new.title = story.title
	story_new.story_description = story.story_description

src/t/i/TicketTracker-HEAD/storyparser/tests/django_tests.py   TicketTracker(Download)
	def test_username_fail_resolve(self):
		story_text = "= a\nb\n-c [@a]"
		dstory = wm.Story(title = " a", story_description = "b")
		dtask = wm.Task(description = "c  [@a]")
		(rstory, rtasks) = converter.Converter.text_to_django_story(story_text)	
	def test_username_resolve(self):
		u = wm.User.objects.create(username = "andraz")
		story_text = "= a\nb\n-c [@andraz]"
		dstory = wm.Story(title = " a", story_description = "b")
		dtask = wm.Task(description = "c ", owner = u)

src/t/i/TicketTracker-HEAD/storyparser/converter.py   TicketTracker(Download)
		if not story:
			raise Exception("Story parsing wasn't successful")
		dstory = wm.Story()
		dstory.title = story.title
		dstory.story_description = story.description