call register birth in the register birth test

This commit is contained in:
Mark LaPerriere 2015-02-05 23:12:33 -05:00
parent af5a8624a6
commit 450c5969aa
1 changed files with 2 additions and 0 deletions

View File

@ -385,6 +385,8 @@ class TestWorker(RQTestCase):
q = Queue()
w = Worker([q])
w.register_birth()
birth_date = w.birth_date
self.assertIsNotNone(birth_date)
self.assertEquals(type(birth_date).__name__, 'datetime')