Skip to content

Commit

Permalink
Merge pull request #385 from bradarv90/master
Browse files Browse the repository at this point in the history
Test for #380
  • Loading branch information
bboe committed Apr 8, 2015
2 parents 6414bbb + a692e77 commit c6706f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,13 @@ def test_create_self_and_verify(self):
self.assertEqual(submission.title, title)
self.assertEqual(submission.selftext, content)

def test_create_self_no_body(self):
title = 'Test Self: %s' % uuid.uuid4()
content = ''
submission = self.r.submit(self.sr, title, text=content)
self.assertEqual(submission.title, title)
self.assertEqual(submission.selftext, content)


class SubmissionEditTest(unittest.TestCase, AuthenticatedHelper):
def setUp(self):
Expand Down

0 comments on commit c6706f5

Please sign in to comment.