Skip to content

Commit

Permalink
DIP-213 updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akameron committed Apr 26, 2016
1 parent 9c0614d commit 4623700
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,26 @@ def test_running(self):

self.assertTrue(result)

def test_running(self):
def test_error_getter(self):

message = "test error message"

job = JobModel()
job._error = "test error message"
job._error = message
result = job.error

self.assertEqual(result, "test error message")
self.assertEqual(result, message)

def test_error_setter(self):

message = "test error message"

job = JobModel()
job.error = message
result = job.error

self.assertEqual(result, message)


@freeze_time(frozen_datetime)
@patch.object(JobModel, 'save')
Expand Down

0 comments on commit 4623700

Please sign in to comment.