Ejemplo n.º 1
0
	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)	
		compare_django_stories(self, rstory, dstory)
		compare_django_tasks(self, rtasks, [dtask])
Ejemplo n.º 2
0
 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)
     compare_django_stories(self, rstory, dstory)
     compare_django_tasks(self, rtasks, [dtask])
Ejemplo n.º 3
0
	def test_username_resolve(self):
		u = wm.User.objects.create(username = "******")
		story_text = "= a\nb\n-c [@andraz]"
		dstory = wm.Story(title = " a", story_description = "b")
		dtask = wm.Task(description = "c ", owner = u)
		(rstory, rtasks) = converter.Converter.text_to_django_story(story_text)	
		compare_django_stories(self, rstory, dstory)		
		compare_django_tasks(self, rtasks, [dtask])		
Ejemplo n.º 4
0
 def test_username_resolve(self):
     u = wm.User.objects.create(username="******")
     story_text = "= a\nb\n-c [@andraz]"
     dstory = wm.Story(title=" a", story_description="b")
     dtask = wm.Task(description="c ", owner=u)
     (rstory, rtasks) = converter.Converter.text_to_django_story(story_text)
     compare_django_stories(self, rstory, dstory)
     compare_django_tasks(self, rtasks, [dtask])