Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
admin post test
Browse files Browse the repository at this point in the history
  • Loading branch information
retrorabbitWD committed Aug 20, 2014
1 parent f26d052 commit 839faf2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion oneplus/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def test_chat(self):
)

self.assertEquals(resp.status_code, 200)


def test_inbox_send(self):
self.client.get(reverse('auth.autologin',
Expand Down Expand Up @@ -636,6 +636,14 @@ def test_view_adminpreview(self):

self.assertContains(resp,"test question")

# Post a correct answer
resp = c.post(
reverse('learn.preview',kwargs={'questionid':self.question.id}),
data={'answer': self.questionoption.id},follow=True
)

self.assertContains(resp, "Correct")

def test_right_view_adminpreview(self):

password = 'mypassword'
Expand Down

0 comments on commit 839faf2

Please sign in to comment.