Exemple #1
0
 def test_diff_without_spaces_works(self):
     self.client.post(reverse(views.resetrepo))
     self.client.post(reverse(views.diff_submit),
         {'diff': open(make_testdata_filename('svn',
             'svn-diff-without-spaces-on-blank-context-lines.patch')).read()
         }
     )
     paulproteus = Person.objects.get(user__username='******')
     self.assert_(view_helpers.mission_completed(paulproteus, 'svn_diff'))
Exemple #2
0
 def test_diff_without_spaces_works(self):
     self.client.post(reverse(views.resetrepo))
     self.client.post(reverse(views.diff_submit), {'diff': open(
         make_testdata_filename(
             'svn',
             'svn-diff-without-spaces-on-blank-context-lines.patch'
         )).read()}
     )
     paulproteus = Person.objects.get(user__username='******')
     self.assert_(view_helpers.mission_completed(paulproteus, 'svn_diff'))
 def test_diff_without_spaces_works(self):
     self.client.post(reverse(views.resetrepo))
     self.client.post(
         reverse(views.diff_submit),
         {
             "diff": open(
                 make_testdata_filename("svn", "svn-diff-without-spaces-on-blank-context-lines.patch")
             ).read()
         },
     )
     paulproteus = Person.objects.get(user__username="******")
     self.assert_(controllers.mission_completed(paulproteus, "svn_diff"))